themes icon indicating copy to clipboard operation
themes copied to clipboard

[SegmentedControl] Disabled items not supported

Open lucarestagno opened this issue 1 year ago • 2 comments

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

lucarestagno avatar May 06 '24 10:05 lucarestagno

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

vladmoroz avatar May 06 '24 11:05 vladmoroz