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

USWDS - Header: Remove FOUC on extended header with mega-menu. #4057

Merged
merged 4 commits into from
Mar 3, 2021

Conversation

mejiaj
Copy link
Contributor

@mejiaj mejiaj commented Mar 1, 2021

Description

Closes #4047. Adds a more specific selector to extended header with mega-menu to remove the flash of unstyled content.

Additional information

Steps to test:

  1. Go to Header compare page
  2. Open devtools
  3. In firefox go to Network → No Throttling ↕ → Regular 2G
    In Chrome Network → Online ▼ → Slow 3G
  4. Hard refresh page

Before you hit Submit, make sure you’ve done whichever of these applies to you:

  • Follow the 18F Front End Coding Style Guide and Accessibility Guide.
  • Run npm test and make sure the tests for the files you have changed have passed.
  • Run your code through HTML_CodeSniffer and make sure it’s error free.
  • Title your pull request using this format: [Website] - [UI component]: Brief statement describing what this pull request solves.

@@ -6,9 +6,7 @@
}

@mixin add-sr-only {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seemed like a duplicate of sr-only mixin so I extended it instead.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea

Copy link
Contributor

@scottqueen-bixal scottqueen-bixal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the testing instructions and did not see that the reported issue from #4047 was still happening.

@thisisdano thisisdano merged commit dd22634 into develop Mar 3, 2021
@thisisdano thisisdano deleted the jm-extended-megamenu-flash branch March 3, 2021 06:59
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.

Extended Header with Megamenu is flashing
3 participants