Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: fluent-slider does not support readonly #33936

Open
2 tasks done
vnbaaij opened this issue Mar 4, 2025 · 1 comment
Open
2 tasks done

[Bug]: fluent-slider does not support readonly #33936

vnbaaij opened this issue Mar 4, 2025 · 1 comment

Comments

@vnbaaij
Copy link
Contributor

vnbaaij commented Mar 4, 2025

Component

Slider

Package version

3.0.0-beta-82

@microsoft/fast-element version

2.1

Environment

Blazor applications

Current Behavior

When setting readonly="true" value of the slider can be changed by keyboard and mouse interaction.

Expected Behavior

When setting readonly="true" value of the slider should not be able to be changed by keyboard and mouse interaction.

Reproduction

https://stackblitz.com/edit/typescript-elwdevpm?file=package.json

Steps to reproduce

Just operate on the slider in the rendered html. Interaction is still possible although readonly is set.

Are you reporting an Accessibility issue?

None

Suggested severity

High - No workaround

Products/sites affected

FluentUI Blazor v5

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@smhigley
Copy link
Contributor

smhigley commented Mar 5, 2025

@vnbaaij native HTML sliders do not support a readonly attribute, only inputs that accept text entry may be readonly, as per the HTML spec:

"Only text controls can be made read-only, since for other controls (such as checkboxes and buttons) there is no useful distinction between being read-only and being disabled, so the readonly attribute does not apply."

from the HTML spec: https://html.spec.whatwg.org/multipage/input.html#the-readonly-attribute

I'll let someone from the web components team clarify if this is why the Fluent slider also does not support readonly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants