-
Notifications
You must be signed in to change notification settings - Fork 32
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
ActionMenu text reflow fix #700
Conversation
🦋 Changeset detectedLatest commit: aad7718 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🟢 No design token changes found |
|
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!
There's the one remaining TODO, but I'm guessing that's just there to make the before/after visual diff possible and will be fixed before merge? 🙂
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.
@rezrah Can we have the text within Select
be left-aligned instead of center-aligned?
@simmonsjenna 👋 Are you referring to the text inside the button or the popup menu? If button, this is how it would look: If menu items, those are already left aligned and have are offset by default to make room for the selection arrow. This helps mitigate layout shift. |
Yes! Inside the button itself as in the example you provided above. |
@simmonsjenna I understand your proposal to left-align the label but I believe keeping it centered is a more consistent option for a couple of reasons:
I think we cannot easily test those two scenarios and switch from left to center alignment accordingly so the best option might be to keep the default centered alignment. |
@danielguillan Thanks for the callout — I dug into it a bit more to understand how things are currently structured. I didn't realize that the downward chevron was right next to the Button copy: I was expecting it to be more like this with We can keep it as center aligned based on the variations that could occur 👍 |
Summary
Resolves https://github.com/github/primer/issues/3758 (SEV-1⚠️ )
Removes truncation of long text in
ActionMenu
button and lists, allowing it to instead reflow per WCAG guidelines.List of notable changes:
Steps to test:
Supporting resources (related issues, external links, etc):
Contributor checklist:
Reviewer checklist:
Screenshots: