lit-ui-router / AriaCurrentValues
Interface: AriaCurrentValues
Defined in: packages/lit-ui-router/src/ui-sref-active.ts:170
Per-state aria-current values, for the rare nav that wants to mark an ancestor as well as the current page.
Unlike activeClasses and exactClasses — which both land in class when a link is exactly active — aria-current is one attribute with one value, so these do not combine: on an exactly-active element exact wins and active is not consulted. Each key falls back to its own default when omitted.
See
UiSrefActiveParams.ariaCurrentValue
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
active? | false | AriaCurrentValue | Applied when a child state is active but this one is not the exact match — 'location' is the token meant for this. Defaults to false. | packages/lit-ui-router/src/ui-sref-active.ts:177 |
exact? | false | AriaCurrentValue | Applied when the exact state is active. Defaults to 'page' on links. | packages/lit-ui-router/src/ui-sref-active.ts:172 |