Skip to content

Commit 372e6cb

Browse files
committed
Add a button el to RS filter badge for improved accessibility.
1 parent bf1f5ae commit 372e6cb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/exceptions-table/exceptions-table.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,9 @@ export class ExceptionsTable extends LitElement {
8989
<span class="badges">
9090
${this.renderETPBadges(entry)}
9191
${entry.filter_expression
92-
? html`<ui-badge
93-
title="${entry.filter_expression}"
94-
@click=${() => this.onDetailClick(entry)}
95-
type="filter"
96-
>RS Filter</ui-badge
97-
>`
92+
? html`<ui-badge title="${entry.filter_expression}" type="filter">
93+
<button @click=${() => this.onDetailClick(entry)}>RS Filter</button>
94+
</ui-badge>`
9895
: ""}
9996
${entry.isPrivateBrowsingOnly != null
10097
? html`<ui-badge type="private">PBM Only</ui-badge>`

0 commit comments

Comments
 (0)