-
Notifications
You must be signed in to change notification settings - Fork 1k
USWDS - Footer: Fix overflow focus cutoff and padding #6237
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
Conversation
This `overflow: hidden` doesn't seem to serve any purpose, and cuts off the focus ring of elements at the edge of the footer.
@@ -66,6 +65,7 @@ $-chevron-expand-more: map-merge( | |||
|
|||
.usa-footer__primary-container { | |||
@include grid-container($theme-footer-max-width); | |||
@include u-padding-x(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note
This is the only meaningful change from #6093. All other changes are just re-ordering the style rules to match convention.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good to me! Both issues are fairly related, so getting both done in one pull makes sense to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirming that all variants look good on all screen sizes. Thanks for building off of the good work from @6TELOIV.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! All three variants are much more uniform now.
Question: Should we set the target to #6093? Or are we going to close that one in favor of this one?
It might be good to keep the previous one due to the discussion and decisions captured there
Summary
Removed
overflow: hidden
fromusa-footer
to allow the full focus outline to show. This fix also improves alignment in the slim footer variant.Note
This is a follow-on for PR #6093 (Thanks @6TELOIV!)
Breaking change
This is not a breaking change.
Related issue
Closes #6092
Related pull requests
Changelog
Preview link
Footer component
Problem statement
Focus rings are visually cut off in the footer. Additionally, the padding in the slim footer prevents the top border from extending the full width of the component (like it does in the other variants).

Solution
overflow: hidden
allows focus rings to show at the edge of the footer.Screenshots
Default footer
Slim footer
Note that this change also fixes the slim footer alignment in medium screen widths:
Testing and review
overflow: hidden