·
4 commits
to main
since this release
Minor Changes
-
593a21a: feat: add
Announcer
custom element- Use the
Announcer
element to politely announce changes to screen readers. View documentation - In addition, the following interactive elements now announce changes to screen readers through the use of the
Announcer
Base
- creates a sharedAnnouncer
element for all elements to utilize, announce a message with theannounce
methodCopy
andShare
- announces text has been successfully copiedTableSort
- announces the column and sort order upon sortWakeLock
- announces when the wake lock is activated/deactivated
- Use the
Patch Changes
-
9005bfa: types: export trigger attribute helper types
EditorTriggerAttributes
TableSortTriggerAttributes
-
00c2e26: a11y:
TableSort
- addrole
,tabindex
, and default event listeners for keyboard navigation -
593a21a: qol: in
drab/{element}/define
modules, check to see if the element is already defined before definingInstead of this:
if (!customElements.get("drab-dialog")) { await import("drab/dialog/define"); }
The check happens inside the define module, so this can be imported without checking if the element is defined first.
await import("drab/dialog/define");