-
Notifications
You must be signed in to change notification settings - Fork 574
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
ActionList.Group should allow for TrailingActions #2043
Comments
Thanks for filing! We're going to explore the accessibility implications of this and will get back to you. |
Leaving notes for the future: The mock up here is a perfect use case for NavigationList, so we could pick this up with the upcoming work. cc @colebemis Because NavigationList uses ActionList under the hood, we would need to add this to ActionList. However, we should add safe guards in place for ActionMenu (which also uses ActionList) because a button next to group title inside role=group would need different semantics (maybe even a different design pattern). For now, we can choose to simply no allow a trailingAction inside an ActionMenu Group |
Definitely @siddharthkp ! We actually mocked this up as an implementation of navigationlist since there wasn't a component for it yet :-) |
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days. |
Not stale |
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days. |
Adding some additional use cases: Search workflowsThis is live in the repo Actions tab (ex: https://github.com/github/github/actions) Manage knowledge basesThis is from a new design for Copilot chat |
Uh oh! @dylanatsmith, the image you shared is missing helpful alt text. Check #2043 (comment). Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days. |
Uh oh! @dylanatsmith, the image you shared is missing helpful alt text. Check #2043 (comment). Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.
|
Thanks for letting us know @dylanatsmith, and sorry this is coming up for you again! We're going to bring this up at the next Primer Patterns session (thank you @mperrotti!) to discuss whether this change is something we'd want to bake in. Feel free to join if you're able/want to; you can request an invite in #primer on Slack. |
@dylanatsmith @siddharthkp - during the Primer patterns session we agreed this is a good pattern, but we're not sure if it's worth building into the component. What's the benefit of handling this in Primer instead of having consumers do it manually? Here's an example of how it would be done manually: <ActionList.GroupHeading as="h3">
<Stack direction="horizontal" align="center">
<Stack.Item grow>Repositories</Stack.Item>
<Stack.Item>
<ActionList.TrailingAction label="Expand sidebar" icon={ArrowLeftIcon} />
</Stack.Item>
</Stack>
</ActionList.GroupHeading> |
Consistency I guess. Is it a button with a label, an IconButton, a button with an icon and a label? Is it small or default size? Does the engineer align it properly? What about some links? If they smash a whole Dialog or other elements inside of that But I don’t feel strongly, I’m good with whatever decision you all make. Some of those questions above probably point toward not being able to support the range of use cases with the component alone anyway. |
Describe the bug
ActionList.Group should allow for a
TrailingAction
, potentially with an api similar to this one, to maintain consistency withActionList.Item
Expected behavior
A user can define a trailing action for a group which appears as a button/link on the end of the group header, similar to the provided sample screenshot
Screenshots
Additional context
Slack thread
The text was updated successfully, but these errors were encountered: