Skip to content

feat(input-file): add status messages for screenreader users#2682

Open
gerjanvangeest wants to merge 1 commit intomasterfrom
feat/input-file-statusMessage
Open

feat(input-file): add status messages for screenreader users#2682
gerjanvangeest wants to merge 1 commit intomasterfrom
feat/input-file-statusMessage

Conversation

@gerjanvangeest
Copy link
Member

What I did

@changeset-bot
Copy link

changeset-bot bot commented Jan 20, 2026

🦋 Changeset detected

Latest commit: bf93cff

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@lion/ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

if (outputElement) {
this.timer = setTimeout(() => {
if (outputElement.parentNode) {
this._statusMessage = nothing;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this component doesn't really comply with our form-controls, but did we explore the possibility of connecting it with the feedback mechanism we have in the ValidateMixin?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The InputFile has validation messaging in place. This serves only of a different goal.
These are messages for screen readers, to inform them about the status. Therefore we use the output element (which works like an automatic aria-live region), place the messages and remove them again afterwards.
The same thing we do inside the input-stepper.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ValidateMixin handles all types of vaidations/feedback (error,warning,success,info etc.).

@gerjanvangeest gerjanvangeest force-pushed the feat/input-file-statusMessage branch from 42ca3a2 to bf93cff Compare January 21, 2026 16:01
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.

3 participants