Skip to content

Commit

Permalink
Swap bg-gradient with bg-color for Banner/Flash (#2643)
Browse files Browse the repository at this point in the history
  • Loading branch information
langermank authored Feb 27, 2024
1 parent 226481e commit 70a6dee
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/yellow-rings-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/view-components": patch
---

Swap bg-gradient with bg-color for Banner/Flash
8 changes: 4 additions & 4 deletions app/components/primer/alpha/banner.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
display: grid;
padding: var(--base-size-8);
color: var(--fgColor-default);
background-image: linear-gradient(var(--bgColor-accent-muted), var(--bgColor-accent-muted));
background-color: var(--bgColor-accent-muted);
border: var(--borderWidth-thin) solid var(--borderColor-accent-muted);
border-radius: var(--borderRadius-medium);
grid-auto-flow: column;
Expand Down Expand Up @@ -78,7 +78,7 @@

&.Banner--warning {
color: var(--fgColor-default);
background-image: linear-gradient(var(--bgColor-attention-muted), var(--bgColor-attention-muted));
background-color: var(--bgColor-attention-muted);
border-color: var(--borderColor-attention-muted);

& .Banner-visual .octicon {
Expand All @@ -88,7 +88,7 @@

&.Banner--error {
color: var(--fgColor-default);
background-image: linear-gradient(var(--bgColor-danger-muted), var(--bgColor-danger-muted));
background-color: var(--bgColor-danger-muted);
border-color: var(--borderColor-danger-muted);

& .Banner-visual .octicon {
Expand All @@ -98,7 +98,7 @@

&.Banner--success {
color: var(--fgColor-default);
background-image: linear-gradient(var(--bgColor-success-muted), var(--bgColor-success-muted));
background-color: var(--bgColor-success-muted);
border-color: var(--borderColor-success-muted);

& .Banner-visual .octicon {
Expand Down
8 changes: 4 additions & 4 deletions app/components/primer/beta/flash.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/* Default color */
color: var(--fgColor-default);
background-image: linear-gradient(var(--bgColor-accent-muted), var(--bgColor-accent-muted));
background-color: var(--bgColor-accent-muted);
border-color: var(--borderColor-accent-muted);

& .octicon {
Expand Down Expand Up @@ -78,7 +78,7 @@

.flash-warn:not(.Banner) {
color: var(--fgColor-default);
background-image: linear-gradient(var(--bgColor-attention-muted), var(--bgColor-attention-muted));
background-color: var(--bgColor-attention-muted);
border-color: var(--borderColor-attention-muted);

& .octicon {
Expand All @@ -88,7 +88,7 @@

.flash-error:not(.Banner) {
color: var(--fgColor-default);
background-image: linear-gradient(var(--bgColor-danger-muted), var(--bgColor-danger-muted));
background-color: var(--bgColor-danger-muted);
border-color: var(--borderColor-danger-muted);

& .octicon {
Expand All @@ -98,7 +98,7 @@

.flash-success:not(.Banner) {
color: var(--fgColor-default);
background-image: linear-gradient(var(--bgColor-success-muted), var(--bgColor-success-muted));
background-color: var(--bgColor-success-muted);
border-color: var(--borderColor-success-muted);

& .octicon {
Expand Down

0 comments on commit 70a6dee

Please sign in to comment.