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

fix(button-group): fixed border style with hidden or single child #1182

Conversation

gcornut
Copy link
Member

@gcornut gcornut commented Sep 13, 2024

General summary

Make sure that the border radius of the first button is only applied on the left and the border radius of the last button is only applied on the right.

Ignore .visually-hidden children (the border radius was applied to them if they were placed in first or last position)

Make it work with a signle button (the left border radius was removed)

StoryBook: https://70b28dd0--5fbfb1d508c0520021560f10.chromatic.com/ (Chromatic build) ⚠️ Outdated commit

@gcornut
Copy link
Member Author

gcornut commented Sep 13, 2024

@gcornut gcornut force-pushed the fix_button-group_fixed_border_style_with_hidden_or_single_child branch from 70b28dd to 7fb5107 Compare September 13, 2024 14:50
@gcornut
Copy link
Member Author

gcornut commented Sep 13, 2024

Fixed lint in stories, no need to re-test

@gcornut gcornut merged commit 13894be into master Sep 16, 2024
8 checks passed
@gcornut gcornut deleted the fix_button-group_fixed_border_style_with_hidden_or_single_child branch September 16, 2024 07:42
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 this pull request may close these issues.

2 participants