Skip to content

Commit 3a67a3f

Browse files
[CalloutCard] Consolidate se23 logic and styles (#10067)
### WHY are these changes introduced? Fixes #9924 ### WHAT is this pull request doing? Consolidates se23 beta styles for `CalloutCard`. ### How to 🎩 Compare and make sure they are identical: * This PR's [Storybook](https://5d559397bae39100201eedc1-ztjybrtfrh.chromatic.com/?path=/story/all-components-calloutcard--default) * [Production Storybook](https://storybook.polaris.shopify.com/?path=/story/all-components-calloutcard--default&globals=polarisSummerEditions2023:true)
1 parent 8b069b2 commit 3a67a3f

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

polaris-react/src/components/CalloutCard/CalloutCard.scss

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,11 @@
2525
}
2626

2727
.Title {
28-
margin-bottom: var(--p-space-5);
29-
#{$se23} & {
30-
margin-bottom: var(--p-space-2);
31-
}
28+
margin-bottom: var(--p-space-2);
3229
}
3330

3431
.Buttons {
35-
margin-top: var(--p-space-5);
36-
#{$se23} & {
37-
margin-top: var(--p-space-2);
38-
}
32+
margin-top: var(--p-space-2);
3933
}
4034

4135
.Container {
@@ -46,7 +40,9 @@
4640
right: var(--p-space-4);
4741
top: var(--p-space-4);
4842
position: absolute;
49-
#{$se23} & svg {
43+
44+
// stylelint-disable-next-line -- Dismiss icon color override
45+
& svg {
5046
fill: var(--p-color-icon-subdued);
5147
}
5248
}

0 commit comments

Comments
 (0)