-
Notifications
You must be signed in to change notification settings - Fork 655
Add keyboard-accessible tooltip for truncated ActionList.Description #7529
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
Open
liuliu-dev
wants to merge
36
commits into
main
Choose a base branch
from
liuliu/add-keyboard-accessible-tooltip-for-actionlist
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
7b11c23
tooltip
liuliu-dev 77c2e16
tests fix
liuliu-dev 73302eb
delay=medium
liuliu-dev 202cf36
use aria-describedby
liuliu-dev 65940fe
Merge branch 'main' into liuliu/add-keyboard-accessible-tooltip-for-a…
liuliu-dev c409898
conflicts
liuliu-dev 2ddd8a0
Merge branch 'liuliu/add-keyboard-accessible-tooltip-for-actionlist' …
liuliu-dev 5b4e4ff
Merge branch 'main' into liuliu/add-keyboard-accessible-tooltip-for-a…
liuliu-dev 17016c9
useResizeObserver
liuliu-dev e865090
Merge remote-tracking branch 'origin/main' into liuliu/add-keyboard-a…
liuliu-dev ea048c3
move tooltip inside <li>, return setTruncatedText undefined
liuliu-dev 2459410
add _privateRenderBeforeTrigger
liuliu-dev 616fe7a
fix aria-labelledby tests
liuliu-dev 0a41460
add tests for button-semantics items and list-semantics items
liuliu-dev f129c8b
ref fix?
liuliu-dev 39dfd96
format
liuliu-dev 8afa73c
lint fix
liuliu-dev a0774e2
assignref
liuliu-dev d56ab27
fix overlay test
liuliu-dev 32d4ffa
lint and format
liuliu-dev cebfc66
props.ref
liuliu-dev 2bffa4e
Merge branch 'main' into liuliu/add-keyboard-accessible-tooltip-for-a…
liuliu-dev a174e54
use css instead of changing the elements order, use useMergedRefs
liuliu-dev 8c8faf5
only add tooltip when createListOverlayOpen is false?
liuliu-dev 663aa4b
add handler back
liuliu-dev eafe84b
remove merge ref and add story
liuliu-dev aac1a90
fix test
francinelucca e73079b
remove conditional
francinelucca de24e06
with a truncated description
liuliu-dev d609d7c
fix
francinelucca b17c8fb
remove useResizeObserver
liuliu-dev 3488872
Merge branch 'liuliu/repro-the-memex-failure' into liuliu/add-keyboar…
liuliu-dev ac08109
add overlay as test instead of story
liuliu-dev 6ba3a74
clean up
liuliu-dev 9b972d0
Merge remote-tracking branch 'origin/main' into liuliu/add-keyboard-a…
liuliu-dev cd19f03
fix the rerender loop on complex child
liuliu-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@primer/react': patch | ||
| --- | ||
|
|
||
| Add keyboard-accessible tooltip for truncated ActionList.Description |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
curious about this change/why its needed 👀
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 change fixes a NavList SubGroup collapse failure(https://github.com/primer/react/actions/runs/22242503448/job/64350808521?pr=7529).
The collapse styling used
+to find.SubGroupright after.ActionListContent. When Tooltip wraps the trigger, it adds an extra element between them, so.SubGroupis no longer the immediate next sibling and the+selector does not match.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.
Makes sense! My assumption is that there will only be one
.SubGroupwithin the container, so there's no risk of it applying to other sub-groups that are also children of the same container.