Skip to content

Commit

Permalink
fix(components): bump icon specificity in Toast (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
Niznikr authored May 28, 2024
1 parent 2804bde commit cf4fa5a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-snakes-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@launchpad-ui/components": patch
---

Bump icon specificity in `Toast`
40 changes: 20 additions & 20 deletions packages/components/src/styles/Toast.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,26 @@
border-radius: var(--lp-border-radius-regular);
box-shadow: 0 0 1px 0 rgb(0 0 0 / 0.25), 0 1px 2px 0 rgb(0 0 0 / 0.14), 0 4px 4px 0 rgb(0 0 0 / 0.06);

& .icon {
transform: translateY(2px);
}

& .info {
fill: var(--lp-color-cyan-400);
}

& .error {
fill: var(--lp-color-pink-500);
}

& .warning {
fill: var(--lp-color-yellow-500);
}

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

@media (prefers-reduced-motion: no-preference) {
&[data-animation="entering"] {
animation-name: slide-in;
Expand Down Expand Up @@ -120,24 +140,4 @@
& a {
text-decoration: underline;
}
}

.icon {
transform: translateY(2px);
}

.info {
fill: var(--lp-color-cyan-400);
}

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

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

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

0 comments on commit cf4fa5a

Please sign in to comment.