Skip to content

Commit 7f189ae

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

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export class PfTr extends LitElement {
110110
<pf-button id="toggle-button"
111111
aria-expanded=${String(this.expanded) as 'true' | 'false'}
112112
plain
113+
label="Expand Button"
113114
@click=${this.#onClick}>
114115
<pf-icon id="toggle-icon"
115116
icon="angle-right"

0 commit comments

Comments
 (0)