Skip to content

Commit

Permalink
chore: update legacy styles with icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Niznikr committed Sep 26, 2024
1 parent b8959e8 commit 59322b5
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 16 deletions.
10 changes: 10 additions & 0 deletions .changeset/fifty-cycles-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@launchpad-ui/clipboard": patch
"@launchpad-ui/banner": patch
"@launchpad-ui/alert": patch
"@launchpad-ui/toast": patch
"@launchpad-ui/modal": patch
"@launchpad-ui/core": patch
---

Update legacy styles with icons
10 changes: 5 additions & 5 deletions packages/alert/src/styles/Alert.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,19 @@

/* Alert kind variants */

.Alert.Alert--info .Alert-icon svg {
.Alert.Alert--info .Alert-icon {
fill: var(--lp-color-fill-feedback-info);
}

.Alert.Alert--success .Alert-icon svg {
.Alert.Alert--success .Alert-icon {
fill: var(--lp-color-fill-feedback-success);
}

.Alert.Alert--warning .Alert-icon svg {
.Alert.Alert--warning .Alert-icon {
fill: var(--lp-color-fill-feedback-warning);
}

.Alert.Alert--error .Alert-icon svg {
.Alert.Alert--error .Alert-icon {
fill: var(--lp-color-fill-feedback-error);
}

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

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

Expand Down
6 changes: 3 additions & 3 deletions packages/banner/src/styles/Banner.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@
transform: translateY(2px);
}

.Banner.Banner--info .Banner-icon svg {
.Banner.Banner--info .Banner-icon {
fill: var(--lp-color-fill-feedback-info);
}

.Banner.Banner--error .Banner-icon svg {
.Banner.Banner--error .Banner-icon {
fill: var(--lp-color-fill-feedback-error);
}

.Banner.Banner--warning .Banner-icon svg {
.Banner.Banner--warning .Banner-icon {
fill: var(--lp-color-fill-feedback-warning);
}
2 changes: 1 addition & 1 deletion packages/clipboard/src/styles/CopyToClipboard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
position: relative;
}

.Clipboard-checkmark svg {
.Clipboard-checkmark {
fill: var(--lp-color-system-green-500);
}

Expand Down
5 changes: 1 addition & 4 deletions packages/modal/src/styles/Modal.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@

.headerIcon {
transform: translateY(2px);

svg {
fill: var(--lp-color-fill-feedback-warning);
}
fill: var(--lp-color-fill-feedback-warning);
}

.headerMain {
Expand Down
6 changes: 3 additions & 3 deletions packages/toast/src/styles/Toast.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
transform: translateY(2px);
}

.Toast--error .Toast-icon svg {
.Toast--error .Toast-icon {
fill: var(--lp-color-pink-500);
}

.Toast--warning .Toast-icon svg {
.Toast--warning .Toast-icon {
fill: var(--lp-color-yellow-500);
}

.Toast--success .Toast-icon svg {
.Toast--success .Toast-icon {
fill: var(--lp-color-system-green-500);
}

Expand Down

0 comments on commit 59322b5

Please sign in to comment.