You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(dimmer): re-apply inert via rAF in firstUpdated to fix Firefox/VoiceOver first-load reachability
On Mac/Firefox/VoiceOver, background card headings were reachable via AT
navigation on first page load when `active` was set declaratively. After
toggling off then on, the bug disappeared — confirming a timing issue.
Root cause: `_updateBackgroundInert()` applied `inert` during `slotchange`,
but child custom elements (it-card) were still upgrading their shadow DOM at
that point. Firefox's AT registered the heading links before the `inert`
constraint propagated through the fully-rendered tree.
Fix: override `firstUpdated()` to re-apply `_updateBackgroundInert()` after
one rAF, matching the AT-settlement pattern in focus-trap-controller.
Also documents BSI#1165 (upstream bootstrap-italia a11y issue) in dimmer.scss
since it cannot be addressed from this layer.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(dimmer): add aria-hidden to background elements to fix Firefox/VoiceOver
The rAF firstUpdated workaround did not fix the issue. Root cause:
Firefox's inert implementation does not propagate through shadow DOM slot
boundaries when building its accessibility tree on first page load. inert IS
set in the DOM but Firefox VoiceOver still finds slotted <a> links inside
custom elements (e.g. it-card) because it does not walk the light DOM
ancestor chain when creating AT nodes for shadow DOM content.
aria-hidden="true" operates on the DOM tree (not the flat tree) and Firefox
has mature, correct support for it: when set on a container, it explicitly
excludes the element and all DOM-tree descendants from the accessibility tree,
including light DOM children that happen to be slotted into child custom
elements.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* changeset
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Piero Nicolli <piero.nicolli@redturtle.it>
0 commit comments