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(details): visual sloppy #11

Merged
merged 1 commit into from
Jun 10, 2024
Merged

fix(details): visual sloppy #11

merged 1 commit into from
Jun 10, 2024

Conversation

Armanio
Copy link
Contributor

@Armanio Armanio commented May 26, 2024

Before:
Снимок экрана 2024-05-26 в 19 02 02

After:
Снимок экрана 2024-05-26 в 19 02 11

Why i use calc?
Without calc inner and outer radii does not equal
Снимок экрана 2024-05-26 в 19 05 07

see more: https://css-tricks.com/public-service-announcement-careful-with-your-nested-border-radii/

@@ -24,6 +24,7 @@ details[open] > summary {
margin: -1rem;
margin-bottom: 1rem;
background: var(--bg-muted);
border-radius: calc(var(--bd-radius) - 1px) calc(var(--bd-radius) - 1px) 0 0;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to put it directly on summary so if the background color of summary is overriden there's no issue too ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! You right! I moved that line in summary declaration. 👍

@lowlighter lowlighter merged commit 4621c22 into lowlighter:main Jun 10, 2024
2 of 3 checks passed
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