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: #778 fixed border radius of menu and submenu with only child #1713

Merged

Conversation

oxcened
Copy link
Contributor

@oxcened oxcened commented Mar 26, 2023

When there's an only child, both the :first-child and :last-child selectors match on the same element. Because of how CSS manages conflicting rules, the latter rule overrides the former, resulting in the top-left and top-right border radius getting unset.

I've added two rules for the menu and two more for the submenu in order to handle this specific case, targeting a child which is both first and last child. If that is the case we want all four corners to be set on border-radius: inherit.

@saadeghi saadeghi merged commit d00c765 into saadeghi:master Apr 24, 2023
@oxcened oxcened deleted the feature/fix-only-child-menu-radius branch April 25, 2023 02:03
@oxcened oxcened restored the feature/fix-only-child-menu-radius branch April 30, 2023 17:37
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