Skip to content

Commit

Permalink
add support for ariaBrailleLabel and ariaBrailleRoleDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
lideen committed Sep 20, 2024
1 parent 87b2d27 commit 87a8e6f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ In addition to form controls, `ElementInternals` will also surface several acces

- `ariaAtomic`: 'aria-atomic'
- `ariaAutoComplete`: 'aria-autocomplete'
- `ariaBrailleLabel`: 'aria-braillelabel'
- `ariaBrailleRoleDescription`: 'aria-brailleroledescription'
- `ariaBusy`: 'aria-busy'
- `ariaChecked`: 'aria-checked'
- `ariaColCount`: 'aria-colcount'
Expand Down
2 changes: 2 additions & 0 deletions jsdom-tests/polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
const aom = {
ariaAtomic: 'aria-atomic',
ariaAutoComplete: 'aria-autocomplete',
ariaBrailleLabel: 'aria-braillelabel',
ariaBrailleRoleDescription: 'aria-brailleroledescription',
ariaBusy: 'aria-busy',
ariaChecked: 'aria-checked',
ariaColCount: 'aria-colcount',
Expand Down
2 changes: 2 additions & 0 deletions src/aom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { IAom, IElementInternals } from './types.js';
export const aom: IAom = {
ariaAtomic: 'aria-atomic',
ariaAutoComplete: 'aria-autocomplete',
ariaBrailleLabel: 'aria-braillelabel',
ariaBrailleRoleDescription: 'aria-brailleroledescription',
ariaBusy: 'aria-busy',
ariaChecked: 'aria-checked',
ariaColCount: 'aria-colcount',
Expand Down
2 changes: 2 additions & 0 deletions src/element-internals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import { patchFormPrototype } from './patch-form-prototype.js';
export class ElementInternals implements IElementInternals {
ariaAtomic: string;
ariaAutoComplete: string;
ariaBrailleLabel: string;
ariaBrailleRoleDescription: string;
ariaBusy: string;
ariaChecked: string;
ariaColCount: string;
Expand Down
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { ElementInternals } from './element-internals.js';
export interface IAom {
ariaAtomic: string;
ariaAutoComplete: string;
ariaBrailleLabel: string;
ariaBrailleRoleDescription: string;
ariaBusy: string;
ariaChecked: string;
ariaColCount: string;
Expand Down

0 comments on commit 87a8e6f

Please sign in to comment.