Skip to content

[dev-v5][Input] Make sure label is created at the right location#5038

Draft
vnbaaij wants to merge 1 commit into
dev-v5from
users/vnbaaij/dev-v5/fix-issue-#4980
Draft

[dev-v5][Input] Make sure label is created at the right location#5038
vnbaaij wants to merge 1 commit into
dev-v5from
users/vnbaaij/dev-v5/fix-issue-#4980

Conversation

@vnbaaij

@vnbaaij vnbaaij commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Fix #4980

We need to re-evaluate how to render the label on input components. We are deviating from how it is done in the standard web components and that's causing a11y issues.

This is only a first stab at solving this. It is not complete and unit tests have not been created/altered.

We can use https://stackblitz.com/edit/typescript-juzjvyeg?file=index.html for seeing how it works on the WC side

This must be released before go-live

@vnbaaij vnbaaij added this to the v5.0-RC.5 milestone Jul 21, 2026
Copilot AI review requested due to automatic review settings July 21, 2026 18:30
@github-actions

Copy link
Copy Markdown

Unit Tests

  • ❌[FAILED] Microsoft.FluentUI.AspNetCore.Components.Tests.Components.List.FluentAutocompleteTests.FluentAutocomplete_Label
  • ❌[FAILED] Microsoft.FluentUI.AspNetCore.Components.Tests.Components.TextInput.FluentTextInputTests.FluentInputText_Default

Details on your Workflow / Core Tests page.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR is an initial attempt to address #4980 by changing how FluentTextInput emits its label so the rendered structure can align better with Fluent UI Web Components and improve accessible-name computation.

Changes:

  • Renders Label content inside the <fluent-text-input> element.

</div>
}

@Label
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.

2 participants