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

[SegmentedControl] Disabled items not supported #489

Open
lucarestagno opened this issue May 6, 2024 · 1 comment
Open

[SegmentedControl] Disabled items not supported #489

lucarestagno opened this issue May 6, 2024 · 1 comment
Labels
request New feature or request

Comments

@lucarestagno
Copy link

Hi,

it looks like the SegmentedControl.Item component doesn't support the disabled state out-of-the-box.
I can trick it by using the aria-disabled attribute, and changing the look and feel via CSS, but the Item is still clickable.

If I use pointer-events: none; it works, but I cannot customize the cursor.

Since the rendered component is a button, I wonder why it has been decided to remove disabled.

Do you know any good workaround?

Thanks,
Luca

@vladmoroz vladmoroz added the request New feature or request label May 6, 2024
@vladmoroz
Copy link
Contributor

Disabled items weren't implemented because of time constraints
We'll add this in one of the future versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants