Skip to content

[6.x] Fix visible he-tree accessibility text in tree view#14465

Merged
jasonvarga merged 4 commits into6.xfrom
he-tree-aria-instructions
Apr 9, 2026
Merged

[6.x] Fix visible he-tree accessibility text in tree view#14465
jasonvarga merged 4 commits into6.xfrom
he-tree-aria-instructions

Conversation

@duncanmcclean
Copy link
Copy Markdown
Member

This pull request fixes an issue where the @he-tree/vue tree component displays a visible "Use arrow keys to navigate..." message at the bottom of the tree view.

This was happening because @he-tree/vue v2.10.2 added accessibility features (screen-reader-only elements) that rely on a .he-tree-sr-only CSS class defined in the library's own stylesheet. Since Statamic doesn't import that stylesheet, the elements were rendered visibly.

This PR fixes it by adding the .he-tree-sr-only styles to Statamic's page tree CSS. It also overrides the library's hardcoded ariaInstructions text with a translatable string.


Fixes #14463
Caused by #14459

…age key

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jasonvarga
Copy link
Copy Markdown
Member

This needed to be applied to the nav tree too. It was being hidden with css, but the text was still hardcoded in English.

If the package allowed passing the instructions as a prop like they do with label, we could get rid of that logic. I opened an issue: phphe/he-tree#165

@jasonvarga jasonvarga merged commit f5195a4 into 6.x Apr 9, 2026
17 checks passed
@jasonvarga jasonvarga deleted the he-tree-aria-instructions branch April 9, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected message on Tree view in Collection following 6.12

2 participants