-
Notifications
You must be signed in to change notification settings - Fork 1.1k
USWDS - Footer: Show overflow (for focus rings) #6093
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.
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.
Thanks for submitting this PR @6TELOIV. The focus outline now appears on all sides of the link elements.
I noticed that there is a small visual regression in the mobile view, where the list element borders are now visible outside the footer container. I've attached a screenshot that demonstrates this:
This is likely not typically visible in project environments where the footer spans from edge to edge, but it is something that should be resolved. I do not see any other visual regressions after removing overflow: hidden
.
Please let us know if you have any questions.
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.
Thanks for keeping up with this @6TELOIV ! The default and slim variants are looking great!
Left one suggestion to resolve a big footer variant regression.
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.
@6TELOIV and @mahoneycm , I'm not seeing any regressions with this approach. Thanks for all of your work! :)
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.
LGTM! Thank you for the contribution and updates @6TELOIV !
- Footer no longer hides focus ring using example markup provided
- No perceived visual regression across variants and breakpoints
- Code changes are minimal and logical
Thanks for the update @6TELOIV. I found one more minor visual regression in the slim footer (see screenshot below). @mahoneycm, @cathybaptista, @mejiaj
If we like this solution, we can either incorporate that change in this branch or just merge in that PR. Let me know what you think. |
@6TELOIV, if you get a chance, can you review the change in #6237? |
@amyleadem sorry, I haven't done reviews of my own before, usually I'm requesting others to review! I think #6237 makes sense and just merging that and closing this one seems good (correct me if I'm misunderstanding anything here!). |
Summary
Remove
overflow: hidden
fromusa-footer
to let focus ring show.Breaking change
None
Related issue
Closes #6092
Related pull requests
None
Preview link
None
Problem statement
Focus rings are visually cut off at the top in the footer.
Solution
Removing
overflow: hidden
allows focus rings to show at the edge of the footer.Testing and review
Should visually review the various recommended
usa-footer
layouts to make sure this doesn't introduce any overflow bugs.