-
Notifications
You must be signed in to change notification settings - Fork 622
TreeView: Add TreeView.TrailingAction
subcomponent
#6156
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 1284602 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
size-limit report 📦
|
TreeView.TrailingAction
subcomponent
<div id={trailingActionId} className={clsx('PRIVATE_VisuallyHidden', classes.TreeViewVisuallyHidden)}> | ||
; {TRAILING_ACTION_SHORTCUT_TEXT} | ||
</div> |
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 is used when linking the main TreeView.Item
with TrailingAction
via aria-labelledby
. The semicolon (;
) is used to help break the 2 sentences (the content within TreeView.Item
, and the text to indicate how to activate the trailing action).
I'm wondering if there's a more elegant way to handle this. Ideally we'd use a period, but there will always be spacing between the item's text content and the shortcut text.
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/394589 |
🔴 golden-jobs completed with status |
8e6c66f
to
b18032a
Compare
6c0dd68
to
1284602
Compare
Closes #
Adds new sub-component
TreeView.TrailingAction
, which allows you to add supplemental actions that are visually appended to the end ofTreeView.Item
.Changelog
New
TreeView.TrailingAction
Rollout strategy
Testing & Reviewing
Merge checklist