You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
EuiButtonIcon is missing "secondary" color option #4836
Additionally, there seems to be a color mismatch when using for example:
<EuiFlexGroupresponsive={false}gutterSize="s"alignItems="center"><EuiFlexItem><EuiButtoncolor="warning"size="s"iconType="unlink">
Detach Selected Features
</EuiButton></EuiFlexItem><EuiFlexItemgrow={false}><EuiButtonIcondisplay="base"color="warning"size="s"iconType="boxesVertical"aria-label="More"/></EuiFlexItem></EuiFlexGroup>
The color of the EuiButton element is different to the color of the EuiButtonIcon element, even though both have the "warning" option for the color prop. Maybe this is intended?
The "secondary" color option is available on EuiButtonIcon as "success". In our new theme we want to deprecate the idea of secondary color and use instead "success".
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. 😄
All colors from the EuiButtonIcon should match the ones from the EuiButton.
Thanks, I kind of moved on when I couldn't get any combination of secondary and success to match! Fixing this so that the EuiButtonIcon and EuiButton styles are consistent would make sense.
Activity
[-]"secondary" color option missing for EuiButtonEmpty[/-][+]"secondary" color option missing on EuiButtonIcon[/+][-]"secondary" color option missing on EuiButtonIcon[/-][+]EuiButtonIcon is missing "secondary" color option[/+]masonlr commentedon May 28, 2021
Additionally, there seems to be a color mismatch when using for example:
The color of the
EuiButtonelement is different to the color of theEuiButtonIconelement, even though both have the "warning" option for the color prop. Maybe this is intended?elizabetdev commentedon May 28, 2021
Hi @masonlr,
The
"secondary"color option is available onEuiButtonIconas"success". In our new theme we want to deprecate the idea of secondary color and use instead"success".So in your example you need to:
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. 😄
masonlr commentedon May 28, 2021
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
EuiButtonIconandEuiButtonstyles are consistent would make sense.