-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Wrap long Auth Display names in menus #26181
Conversation
Build Results: |
CI Results: |
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.
one nit, but otherwise i think this is great!
@@ -77,6 +77,10 @@ | |||
white-space: pre-wrap; | |||
} | |||
|
|||
.overflow-wrap { |
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.
did the is-word-break
class not work for this situation? asking only because i was going to suggest renaming this class to .break-word
to make it more obvious which CSS rule was being applied, but i see that basically already exists. 😛
not a huge deal though since we could always add an .overflow-wrap-anywhere
class helper down the line.
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.
Good question, and it didn't work. The white-space: pre-wrap on that helper borks things. Thanks for checking though!
Came across this while investigating another workflow. Will backport to 1.16.1 only. While we will fix this eventually in the HDS adoption work, I wanted to tackle this now so we don't push another release waiting for that work to complete with this styling issue.
I aired on the conservative side and used a new helper instead of applying the styling to the
menu-label
class. There is some cleanup that needs to be done for this class, and I didn't want to confuse it. Largely there are three menu-label class definitions but it's only currently being used in the user-menu component. My suspicion is that eventually we can remove this class definition as we adopt HDS.Before:
After: