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.
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
a11y(Tooltip): "tooltip" role #6865
base: develop
Are you sure you want to change the base?
a11y(Tooltip): "tooltip" role #6865
Changes from 9 commits
35b3eeb
a007008
8ef625b
d5b5e01
5d3fff2
8f47c5d
8a7ede2
bdcb9a8
1345c97
73a0519
8c44382
730d177
8851895
c2d103a
d5795a2
bf0706e
8d19874
1d5a83a
be12eb3
4010a2e
720a1b2
3b062f1
05113cb
be533a0
2acbda8
31a7fdc
241696b
150687f
110923a
2254a18
bfaa12f
7c7083d
5c7812a
2de1166
1d5157e
7ff1a3b
cfd20f6
1d8abfe
76f22f9
2ca0b39
4646017
0336796
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I don't think we can do this because a consumer may have already defined an
id
on thecontent
which this would overrideThere 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.
Highly doubt that would ever be the case, can't imagine what other scenarios they'd be doing this for. There are many cases, such as in
Popover
, where we apply a bunch of props without caring what the consumer may have already applied.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 should account for that case: be12eb3
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.
@evansjohnson the other alternative solution here would be we add a prop
contentProps
toPopover
and apply it to thediv
that's already wrapping thecontent
. Then we could apply these props via that. Up to you.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.
basically to fix this issue in consumer land is what I'm thinking about, or possibly adding an
id
used to target a tooltip in tests?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.
Refactored, please re review, I think this concern has been solved