Fix header navigation current link styling regression#352
Conversation
nickttng
left a comment
There was a problem hiding this comment.
Overall, it looks solid to me.
Possible other revisions could include...
- Changing side navigation and mobile navigation line to extend the full height of the list item
I am okay not having to extend if it means less maintenance cost. If anything to be consistent, I think updating the border-radius to 0 would align better with the desktop nav style
- Reducing size of mobile navigation "X" button
Okay with reducing the resize of the "X" button as long it doesn't compromise the tap area size.
We expect this already on the brochure site and developer site
To support headers with logo + search distributed as flex
|
Ok, I've finished testing on both desktop and mobile across the brochure site, help center, partner site, developer site, and IdP, and feeling pretty good now after the latest set of changes. It required a bit of extra work to account for things such as partner site header arrangement with search and mobile collapsible menu items. Overall it'll help simplify a lot of the markup and custom styles in those sites as well, which is nice. The preview site includes the latest changes. If it's useful, I could also publish a beta release to get a preview going for those other sites, though maybe it's just as well to go ahead and publish the patch release and we can follow-up with another patch release if there's any further corrections to make. |
|
I'm going to plan to merge this as-is and publish a beta release, which will allow us to test it more exhaustively in preview branches for the brochure site, partner site, and developer site. |
See: |




This resolves a regression introduced as part of the changes in the 7.0.0 release where the "current" link would be shown with a blue underline instead of a red underline.
Example from https://design.login.gov/brand/ :
Compare to https://login.gov/what-is-login/ :
After discussing with @nickttng , the changes here are a bit more of an extensive "reset" to USWDS stock styling, with minimal overrides to apply expected customizations:
base-lightest(#f0f0f0) toprimary-lightest(#f2f9ff)The idea of resetting to the USWDS is...
Open questions:
Changing side navigation and mobile navigation line to extend the full height of the list itemEdit: Based on Fix header navigation current link styling regression #352 (review), keeping height as-is, but removed border radius in 9f59575.Reducing size of mobile navigation "X" buttonEdit: Added in e3a5d1fTo review: