-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
web: lower .card
priority
#46274
web: lower .card
priority
#46274
Conversation
Bundle size report 📦
Look at the Statoscope report for a full comparison between the commits dcf8246 and 6bf0cf8 or learn more. Open explanation
|
Codenotify: Notifying subscribers in OWNERS files for diff a785e20...dcf8246.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no context/experience on .card usage so don't want to blindly approve but thank you for taking a look 😄
@@ -1,4 +1,6 @@ | |||
.card { | |||
// :where() is used to fix the CSS ordering issue with the Toast component | |||
// See https: //github.com/sourcegraph/sourcegraph/issues/42217 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// See https: //github.com/sourcegraph/sourcegraph/issues/42217 | |
// See https://github.com/sourcegraph/sourcegraph/issues/42217 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL about :where
and it always having a specificity of 0
😱
@valerybugakov Chromatic shows a regression for border-radius on some components |
…at you want anyways
I’m fixing this by adding a For now I'll merge this when tests are green so we have unblocked |
@@ -16,7 +18,7 @@ | |||
border-width: 1px; | |||
border-style: solid; | |||
border-color: var(--card-border-color); | |||
border-radius: var(--card-border-radius); | |||
border-radius: var(--card-border-radius) !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is !important
required here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#46274 (comment) We have some conflicts with CSS resets otherwise it seems. In the case above, a button { border-radius: 0 }
rule from Chromatic regressed. I wanted to ship this PR quickly though and will follow-up with @valerybugakov tomorrow on how to improve this but the issue was quite noticeable for some people on S2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good! Can we add a comment here explaining that? I don't think we should have undocumented !important
s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @philipp-spiess!
Context
Card
component.To address the root cause, we need to invest more time in restructuring Wildcard exports, as described in the linked issue.
Test plan
sg start web-standalone-prod
App preview:
Check out the client app preview documentation to learn more.