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

cc-badge: inconsistent border display with WebKit #630

Closed
2 tasks
florian-sanders-cc opened this issue Nov 22, 2022 · 0 comments · Fixed by #606 or #644
Closed
2 tasks

cc-badge: inconsistent border display with WebKit #630

florian-sanders-cc opened this issue Nov 22, 2022 · 0 comments · Fixed by #606 or #644
Assignees
Labels
bug Something isn't working

Comments

@florian-sanders-cc
Copy link
Contributor

florian-sanders-cc commented Nov 22, 2022

Context

With WebKit, the border (box-shadow) of cc-badge may look weird depending on the screen resolution, the zoom, etc.
image

We use inner box-shadow instead of a border so that badges all have the same height whether they are outlined or not.
Codepen to reproduce

Solutions

  • Use a border instead of box-shadow.
  • Use a border and blend it with the background for dimmed, strong weights.
@florian-sanders-cc florian-sanders-cc added the bug Something isn't working label Nov 22, 2022
@florian-sanders-cc florian-sanders-cc self-assigned this Nov 22, 2022
@florian-sanders-cc florian-sanders-cc added this to Discuss in Project board - Clever Components via automation Nov 22, 2022
Project board - Clever Components automation moved this from Discuss to Unreleased Dec 1, 2022
@hsablonniere hsablonniere moved this from Unreleased to Done in Project board - Clever Components Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
1 participant