Skip to content

Can Popover anchor on an element like a <Box> ? #3787

Answered by TheSisb
yunuscanemre asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @yunuscanemre,

The main question isn't can you, but rather should you? In order to build accessible products, it is important that the Popover trigger is a focusable element like a button. This is because it should be clear that there exists a user interaction on an element for both screenreader and mouse users. If one product has a chat log with message bubbles that are clickable and another does not, or even multiple messages within the same UI, this can create confusion for users too.

If you want to make message bubbles clickable, they would each need to be buttons with a tabindex, so screenreaders can tab through them and select them with enter and space. They would also need hover…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@yunuscanemre
Comment options

Answer selected by yunuscanemre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants