Skip to content

Commit 1fd226a

Browse files
fix: fixed accessibility for pf-table
1 parent 5940f37 commit 1fd226a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

elements/pf-table/pf-th.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class PfTh extends LitElement {
5151
const closestThead = this.closest('pf-thead');
5252
const closestTable = this.closest('pf-table');
5353
const isChildOfThead = !!closestThead && !!closestTable?.contains(closestThead);
54-
const role = isChildOfThead ? 'colheader' : 'rowheader';
54+
const role = isChildOfThead ? 'columnheader' : 'rowheader';
5555
this.setAttribute('role', role);
5656
}
5757

elements/pf-table/pf-tr.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ export class PfTr extends LitElement {
110110
<pf-button id="toggle-button"
111111
aria-expanded=${String(this.expanded) as 'true' | 'false'}
112112
plain
113+
role="button"
114+
aria-label="Expand Button"
113115
@click=${this.#onClick}>
114116
<pf-icon id="toggle-icon"
115117
icon="angle-right"

0 commit comments

Comments
 (0)