Repository navigation
web/a11y: User library -- fix issues surrounding element focus, ARIA labeling. - #17522
Conversation
✅ Deploy Preview for authentik-docs canceled.
|
✅ Deploy Preview for authentik-integrations canceled.
|
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| @@ -0,0 +1,96 @@ | |||
| import type { AppGroupEntry } from "./types.js"; | |||
There was a problem hiding this comment.
This is largely ported from ak-application-list as function component, making a lot of the focus logic possible when connecting search inputs to their respective cards.
| public static shadowRootOptions = { ...AKElement.shadowRootOptions, delegatesFocus: true }; | ||
|
|
||
| public override tabIndex = -1; | ||
|
|
There was a problem hiding this comment.
Applied so that document.activeElement targets deeper into the <ak-library-impl>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #17522 +/- ##
==========================================
+ Coverage 92.93% 92.98% +0.05%
==========================================
Files 869 869
Lines 47952 47952
==========================================
+ Hits 44566 44590 +24
+ Misses 3386 3362 -24
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
acdc2c5 to
e5e7808
Compare
e5e7808 to
c95d6a0
Compare
kensternberg-authentik
left a comment
There was a problem hiding this comment.
This one looks good.
c95d6a0 to
ad3b44e
Compare
1dd33ad to
7a8d51f
Compare
- This is buggy, similar to aria-owns, and may cause crashes.
0d90be0 to
f520e37
Compare
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-1359fba7c2f579d0578faa8bb1e170b3ae586749
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-1359fba7c2f579d0578faa8bb1e170b3ae586749Afterwards, run the upgrade commands from the latest release notes. |
…labeling. (#17522) * web/a11y: Fix issues surrounding element focus, aria labeling. * web: Fix focus * web: Fix nested focus * web: Fix menu visibility when anchor positioning is not supported. * web: Fix icon fallback behavior, labels. * web: Fix flickering, descriptions. * web: Fix excess width on mobile. * web: Fix rendering artifacts on mobile. * web: Remove aria-controls behavior. - This is buggy, similar to aria-owns, and may cause crashes. * web: Fix tabpanel focus attempting to scroll page. * web: Fix issues surrounding consistent tab panel parameter testing. * web: add shared helpers. * web: Tidy comments.
|
🍒 Cherry-pick to |
…labeling. (cherry-pick #17522 to version-2025.10) (#17828) web/a11y: User library -- fix issues surrounding element focus, ARIA labeling. (#17522) * web/a11y: Fix issues surrounding element focus, aria labeling. * web: Fix focus * web: Fix nested focus * web: Fix menu visibility when anchor positioning is not supported. * web: Fix icon fallback behavior, labels. * web: Fix flickering, descriptions. * web: Fix excess width on mobile. * web: Fix rendering artifacts on mobile. * web: Remove aria-controls behavior. - This is buggy, similar to aria-owns, and may cause crashes. * web: Fix tabpanel focus attempting to scroll page. * web: Fix issues surrounding consistent tab panel parameter testing. * web: add shared helpers. * web: Tidy comments. Co-authored-by: Teffen Ellis <[email protected]>
Details
This PR fixes several issues which prevented consistent element focusing in the user library such as...
Additionally, a few ARIA issues have been fixed which prevented search results from consistently communicating the number of cards, which order they render when in column format, and which card is in focus in each group. This is achieved by porting some of the library elements into function components, removing the shadow root boundaries which prevent a direct association of search input to card group.
The visual layout is the same, however card groups now use our fieldset elements which support high-contrast mode:
Normal contrast
No extra padding or margin:
More contrast
Group labels moved inward, matching our design in other fieldsets with visible legends, as well as
<ak-form-group />in high-contrast mode.