Repository navigation
Conversation
|
Maybe I'll have reason to pick this up someday but for now… |
This aspect should be hopefully fixed by @DaniGuardiola as he's about to rewrite the indicator animation 🤞
Regarding this, we could get some direction from @WordPress/gutenberg-design and take it from there (no rush, though!) |
|
Feel free to open an issue for a disabled state for this component. If we have a context in the editor, even better. I can probably think up some cases where a disabled segmented control would make sense, but I'd love to hear more thoughts. In most cases I would think the segmented control should not be used in flows where it would need to be disabled. That's not that we shouldn't handle the case at the component level. Just thinking more in terms of: is this just an opacity change, or does it need more thought. |
|
The component doesn't currently have any disabled states — so probably adding an opacity change + disabled cursos is already an improvement. We can always refine these styles at a later point if need be |
|
Yep, I think the toggle is just low opacity when disabled, that works well. Can try that for this too. |
|
While I tested the current status of |
While working on #34893, I found that
ToggleGroupControlhas no styling for disabled options. It gets an inlinepointer-events: nonethanks to Reakit but that's it. So mainly this PR is about adding some basic styles to help differentiate disabled states. I think the difference may be too subtle but I'd like to get some feedback.Besides that there are two more small changes that I think are improvements.
LabelPlaceholderViewbecause it is both visually and aria-hidden. I removed it and still can't figure out what it does. I will not be surprised if I'm missing something and have to restore this though.How has this been tested?
Manually
Screenshots
Disabled Styles
Options 1 & 2 are disabled
Post Featured Image block inspector
Types of changes
Enhancement
Checklist:
*.native.jsfiles for terms that need renaming or removal).