-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiToggle] Deprecate in favor of documenting aria-pressed
#3023
Comments
@myasonik Before we just remove the utility altogether, is there no way to fix it? |
I mean, I think the fix is |
When they don't want a Or really |
🤔 OK — that's something! So I wonder if we can solve this a different way? Just thinking out loud, haven't dug into the code to check the practicalities of any of this:
|
That kind of makes me wonder though, why does Should there actually be one |
@myasonik and I talked this on through. Essentially, to make a Therefore, it makes both the @myasonik will work on the language for this docs section. |
@cchaos So I started writing this up tonight and I hit a decision point: To deprecate this I wanted to update EUI to not use it so I was updating
I vote I add the prop to Thoughts? |
Lol, I love the enthusiasm, but we should not continue to consider deprecating core components as a path forward. One of the main reasons we use separate components instead of more+ props is to make it more explicit/semantic to what the consumer is trying to create. Also, once you start compounding all the different permutations of combinations of props on a single component you start running into failures and issues like "if this prop is this, then it also needs that" and it gets very complicated. Likely the solution is just that we have a custom classname passed to If you can get the button group working with |
I'm good with that being the plan forward for deprecating But longer term, I actually find the bifurcation of @chandlerprall @snide Maybe y'all have some thoughts on the longer term strategy? |
It is much easier to control the stylistic look and patterns of separate components, then try to make one component that can do everything, but be very adaptive with nested prop cascade. I'm willing to have that conversation, but it would require a beverage and a lack of priorities. 🍻 |
I don't particularly care about the end direction taken. However, I'd like to see an icon button concept that accounts for all of an icon button's use cases: icon with maybe a fill and/or border. I don't think |
I'd recommend just taking baby steps right now. Let's fix what this issue is truly trying to solve, then we get into creating more states for other components. But currently adding more visual styles to EuiButtonIcon requires some thinking on design implications around the necessity/usages. |
EuiToggle
utility aria-pressed
I'd like to deprecate
EuiToggle
largely because it's an inaccessible pattern that requires more work to get right but having it bundled in the library gives it a air of authority.I think it also aligns with EUI's ethos of not providing things that don't have use-cases. So, right now, this is a public API that we have upkeep expectations around even though no one has any reason to use so we can't even say this is the best solution we can offer.
After scouring GitHub, the only usage of it that I could find is EUI itself within
EuiButtonToggle
so it shouldn't have much (if any) impact on any consumers of EUI.Given it's lack of usage, I don't think a better time to remove it will come up.
CC @snide @cchaos — thoughts?
The text was updated successfully, but these errors were encountered: