Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mega Menu: remove redundant CSS #8504

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Mega Menu: remove redundant CSS #8504

merged 1 commit into from
Jul 11, 2024

Conversation

anselmbradford
Copy link
Member

@anselmbradford anselmbradford commented Jul 10, 2024

Changes

  • Remove &-item--has-icon .cf-icon-svg display: inline-block rule, which is overridden with display: inline by the same selector further down.

  • Rearrange &-list--featured &-link so that redundant definition is removed.

How to test this PR

  1. See that &-item--has-icon .cf-icon-svg display rule appears twice.

https://github.com/cfpb/consumerfinance.gov/blob/main/cfgov/unprocessed/css/organisms/mega-menu.less#L238
https://github.com/cfpb/consumerfinance.gov/blob/main/cfgov/unprocessed/css/organisms/mega-menu.less#L263

  1. See that &-list--featured &-link appeared twice.

https://github.com/cfpb/consumerfinance.gov/blob/main/cfgov/unprocessed/css/organisms/mega-menu.less#L861
https://github.com/cfpb/consumerfinance.gov/blob/main/cfgov/unprocessed/css/organisms/mega-menu.less#L898

  1. Pull branch, run yarn build and check desktop megamenu featured items hover and padding. It should be the same as prod.

@anselmbradford anselmbradford added this pull request to the merge queue Jul 11, 2024
Merged via the queue into main with commit b8b0d20 Jul 11, 2024
11 checks passed
@anselmbradford anselmbradford deleted the ans_mm_css branch July 11, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants