Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions common/changes/c2pa-wc/CAI-3405_2023-02-14-16-41.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "c2pa-wc",
"comment": "making L2 keyboard focusable",
"type": "patch"
}
],
"packageName": "c2pa-wc"
}
2 changes: 1 addition & 1 deletion packages/c2pa-wc/src/components/Popover/Popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export class Popover extends LitElement {
<slot name="content"></slot>
${this.arrow ? html`<div id="arrow"></div>` : null}
</div>
<div id="trigger">
<div id="trigger" tabindex="0">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might be better to let consumers decide how to implement a11y rather than forcing the decision on them here.

I suggest doing this on the verify side by passing focusin:focusout as a trigger type to cai-popover and adding tabindex="0" to <cai-indicator>.

<div class="hidden-layer"></div>
<slot name="trigger"></slot>
</div>
Expand Down