Skip to content
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

[EuiBadgeGroup] Issue with CSS specificity and margins of badges #6617

Closed
elizabetdev opened this issue Feb 24, 2023 · 0 comments · Fixed by #6618
Closed

[EuiBadgeGroup] Issue with CSS specificity and margins of badges #6617

elizabetdev opened this issue Feb 24, 2023 · 0 comments · Fixed by #6618
Assignees

Comments

@elizabetdev
Copy link
Contributor

When a gutter is added in EuiBadgeGroup like gutterSize="s" the margin inline should be overridden to 0 like:

image

This can be replicated here:

https://codesandbox.io/s/muddy-dust-juq2z7?file=/demo.tsx

But for some reason, in a few scenarios, the CSS's order of appearance makes the margin not overridden:

image

This can be replicated here:

https://codesandbox.io/s/intelligent-darwin-l1gk6s?file=/demo.js

To fix this we can improve the CSS to be more specific.

@elizabetdev elizabetdev changed the title [EuiBadgeGroup] Issue wiht CSS specificity and margins of badges [EuiBadgeGroup] Issue with CSS specificity and margins of badges Feb 24, 2023
@elizabetdev elizabetdev self-assigned this Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant