-
Notifications
You must be signed in to change notification settings - Fork 842
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
[EuiButtonGroup] Better differentiate the current selection #6819
Comments
@ryankeairns any suggestions or opinions on what the solution/fix should be? Should Edit for clarity - I'm looking for a clear acceptance criteria to close out this issue :) |
Good news on 1., I've increased the font weight of selected buttons as part of the component's Emotion conversion (#6841). I personally like the look of 2 a lot!
I don't think this is correct. The button group should match the height of the buttons at the specified sizes, the |
Added the proposed design from my previous comment to the issue description. |
I spiked this out a bit but I'm running into slight difficulties.
|
I spiked this out because it's easier to have something to look at in-browser: #6876 / https://eui.elastic.co/pr_6876/#/navigation/button#button-groups (make sure to test selecting all and unselecting all on the 2nd example) TBH, I'm not sure I'm a huge fan of the change in reality. The styling change is significantly more complex than I thought (especially for disabled states, particularly when a button inside a group is disabled but the entire group is not disabled), and to be honest, visually I can barely even see the 2px border especially on certain color combos. I think the font-weight change I've already made is already a sufficient indicator for selection, and it might be worth considering skipping the pill/padding changing. Thoughts? |
Helpful context; not surprising to learn :)
In light of the additional context - and that this is most relevant in situations with exactly two options - this seems like the practical thing to do first. We can then keep an eye/ear open for additional feedback. |
Thanks Ryan!
For the purposes of this open issue, should we go ahead and close it for now until we hear that more change is needed? Or we could leave the issue open and let it auto-close in a year 🤷 |
Let's close it. People can still add comments / provide feedback but, and until this happens, it won't land on our roadmap. |
Is your feature request related to a problem? Please describe.
[internal feedback] I cannot tell with confidence which value is actually selected by looking at this unless I click and make the selection. But I just want to know what's selected, not change it.
Describe the solution you'd like
Can I suggest to make the selected item have more differentiation, perhaps an outline in addition to darker colouring. (this is one example to highlight).
Proposed redesign
Additional context
This is particularly problematic when only two options are presented (see below):
For reference, we apply margin around the currently active option in the
compressed
version of this input. Perhaps we can apply a similar style to the default sizeEuiButtonGroup
, as well.The text was updated successfully, but these errors were encountered: