-
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
EuiButtonIcon is missing "secondary" color option #4836
Comments
Additionally, there seems to be a color mismatch when using for example: <EuiFlexGroup responsive={false} gutterSize="s" alignItems="center">
<EuiFlexItem>
<EuiButton
color="warning"
size="s"
iconType="unlink"
>
Detach Selected Features
</EuiButton>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
display="base"
color="warning"
size="s"
iconType="boxesVertical"
aria-label="More"
/>
</EuiFlexItem>
</EuiFlexGroup> The color of the |
Hi @masonlr, The So in your example you need to: <EuiFlexGroup responsive={false} gutterSize="s" alignItems="center">
<EuiFlexItem grow={false}>
<EuiButton size="s" color="secondary">
Secondary action
</EuiButton>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
display="base"
size="s"
color="success"
iconType="boxesVertical"
aria-label="More"
/>
</EuiFlexItem>
</EuiFlexGroup> I run some tests here and for both examples, the buttons don't quite match the background colors. We should fix this. All colors from the EuiButtonIcon should match the ones from the EuiButton. 😄 |
Thanks @miukimiu!
Good to know.
Thanks, I kind of moved on when I couldn't get any combination of secondary and success to match! Fixing this so that the |
Looking at the v34.1.0 "Split buttons" example here https://elastic.github.io/eui/#/navigation/button, it's not possible to write something like:
as the "secondary" option is not available on
EuiButtonIcon
, even though it's available onEuiButton
.To fix this, the color prop on
EuiButtonIcon
needs to support the "secondary" option.The text was updated successfully, but these errors were encountered: