Skip to content

Commit 17cdcbd

Browse files
authored
chore: update legacy styles with icons (#1414)
1 parent b8959e8 commit 17cdcbd

File tree

6 files changed

+23
-16
lines changed

6 files changed

+23
-16
lines changed

.changeset/fifty-cycles-tap.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@launchpad-ui/clipboard": patch
3+
"@launchpad-ui/banner": patch
4+
"@launchpad-ui/alert": patch
5+
"@launchpad-ui/toast": patch
6+
"@launchpad-ui/modal": patch
7+
"@launchpad-ui/core": patch
8+
---
9+
10+
Update legacy styles with icons

packages/alert/src/styles/Alert.module.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,19 @@
8181

8282
/* Alert kind variants */
8383

84-
.Alert.Alert--info .Alert-icon svg {
84+
.Alert.Alert--info .Alert-icon {
8585
fill: var(--lp-color-fill-feedback-info);
8686
}
8787

88-
.Alert.Alert--success .Alert-icon svg {
88+
.Alert.Alert--success .Alert-icon {
8989
fill: var(--lp-color-fill-feedback-success);
9090
}
9191

92-
.Alert.Alert--warning .Alert-icon svg {
92+
.Alert.Alert--warning .Alert-icon {
9393
fill: var(--lp-color-fill-feedback-warning);
9494
}
9595

96-
.Alert.Alert--error .Alert-icon svg {
96+
.Alert.Alert--error .Alert-icon {
9797
fill: var(--lp-color-fill-feedback-error);
9898
}
9999

@@ -106,7 +106,7 @@
106106
color: var(--lp-component-alert-notification-flair-strong-color-text);
107107
}
108108

109-
.Alert.Alert--notification.Alert--flair-strong .Alert-close svg {
109+
.Alert.Alert--notification.Alert--flair-strong .Alert-close {
110110
fill: var(--lp-component-alert-notification-flair-strong-color-fill);
111111
}
112112

packages/banner/src/styles/Banner.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@
5959
transform: translateY(2px);
6060
}
6161

62-
.Banner.Banner--info .Banner-icon svg {
62+
.Banner.Banner--info .Banner-icon {
6363
fill: var(--lp-color-fill-feedback-info);
6464
}
6565

66-
.Banner.Banner--error .Banner-icon svg {
66+
.Banner.Banner--error .Banner-icon {
6767
fill: var(--lp-color-fill-feedback-error);
6868
}
6969

70-
.Banner.Banner--warning .Banner-icon svg {
70+
.Banner.Banner--warning .Banner-icon {
7171
fill: var(--lp-color-fill-feedback-warning);
7272
}

packages/clipboard/src/styles/CopyToClipboard.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
position: relative;
33
}
44

5-
.Clipboard-checkmark svg {
5+
.Clipboard-checkmark {
66
fill: var(--lp-color-system-green-500);
77
}
88

packages/modal/src/styles/Modal.module.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@
6363

6464
.headerIcon {
6565
transform: translateY(2px);
66-
67-
svg {
68-
fill: var(--lp-color-fill-feedback-warning);
69-
}
66+
fill: var(--lp-color-fill-feedback-warning);
7067
}
7168

7269
.headerMain {

packages/toast/src/styles/Toast.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
transform: translateY(2px);
1616
}
1717

18-
.Toast--error .Toast-icon svg {
18+
.Toast--error .Toast-icon {
1919
fill: var(--lp-color-pink-500);
2020
}
2121

22-
.Toast--warning .Toast-icon svg {
22+
.Toast--warning .Toast-icon {
2323
fill: var(--lp-color-yellow-500);
2424
}
2525

26-
.Toast--success .Toast-icon svg {
26+
.Toast--success .Toast-icon {
2727
fill: var(--lp-color-system-green-500);
2828
}
2929

0 commit comments

Comments
 (0)