Repository navigation
fix(a11y): keep visually hidden input labels accessible - #2564
Merged
amir-ba merged 2 commits intoOct 29, 2026
Merged
Conversation
Signed-off-by: Umut Alisoglu <umutalisoglu@gmail.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The narrow CSS fixes and focused regression tests address the accessibility issue with no blocking issues identified.
No open issues 🎉
What changed in this PR
Fixes #2558 by keeping visually hidden textarea and date-picker labels available to assistive technology, without changing public APIs.
Changes:
- Replaces
visibility: hiddenwith screen-reader-only clipping in both components. - Adds browser regressions for accessible names, hidden-label dimensions, focus, and restoring visible labels, plus textarea typing.
- Adds the contributor to
AUTHORS.
| File | Description |
|---|---|
| packages/components/src/components/textarea/textarea.e2e.ts | Tests accessible names and label visibility transitions. |
| packages/components/src/components/textarea/textarea.css | Keeps visually hidden textarea labels accessible. |
| packages/components/src/components/date-picker/date-picker.e2e.ts | Adds accessible-name and label visibility regressions. |
| packages/components/src/components/date-picker/date-picker.css | Keeps visually hidden date-picker labels accessible. |
| AUTHORS | Adds contributor attribution. |
Review effort: Balanced
Collaborator
|
LGTM @UmutAlisoglu , remove the authors change , since it belongs to a partner company of ours and we will merge this . |
amir-ba
reviewed
Oct 27, 2026
Collaborator
There was a problem hiding this comment.
this is not a maintained file and belongs to the original 3rd party maintainers of the repo . Please do not change.
Signed-off-by: Umut Alisoglu <umutalisoglu@gmail.com>
Contributor
Author
|
Removed the AUTHORS change as requested. The accessibility fix and its browser regressions are unchanged. Thanks for the review! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2558. Claimed before implementation in the issue.
hide-label-visuallycurrently appliesvisibility: hiddento the textarea and date-picker labels. Chromium exposes an empty accessible name for both controls. Replace that rule with the screen-reader-only clipping pattern already used by Scale's checkbox, keeping the label available to assistive technology while removing it visually.Browser regressions check actual Chromium accessibility names, the clipped label bounds, focus/typing, and switching the label back to visible. No ARIA name overrides or public API changes. The new test has the MPL header; the contributor entry is in the existing AUTHORS list.
Validation on Windows / Node 24.21.0 / frozen Yarn 1.22.22 dependencies:
Description/Start date.@maomaoZH (CODEOWNERS), ready for review. Signed-off commit; AI assistance was used for implementation and regression tests.