Skip to content

Commit

Permalink
CSS Library: remove the /alerts image path (#1381)
Browse files Browse the repository at this point in the history
* style and image path updates for alert and action link

* remove /alert/ from image path

* remove /alert/ from image path
  • Loading branch information
jamigibbs authored Oct 25, 2024
1 parent 32ae6e9 commit 8857ee7
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
16 changes: 8 additions & 8 deletions packages/css-library/dist/stylesheets/core.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/css-library/dist/stylesheets/modules/m-alert.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/css-library/dist/tokens/css/variables.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Fri, 25 Oct 2024 14:10:23 GMT
* Generated on Fri, 25 Oct 2024 15:10:34 GMT
*/

:root {
Expand Down
2 changes: 1 addition & 1 deletion packages/css-library/dist/tokens/scss/variables.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// Do not edit directly
// Generated on Fri, 25 Oct 2024 14:10:23 GMT
// Generated on Fri, 25 Oct 2024 15:10:34 GMT

$xsmall-screen: 320px;
$small-screen: 481px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ $icon-size: scale-rem(3rem);
@each $name, $bgcolor in $alerts {
.usa-alert-#{$name} {
background-color: $bgcolor;
background-image: url('#{$image-path}/alerts/#{$name}.png');
background-image: url('#{$image-path}/alerts/#{$name}.svg');
background-image: url('#{$image-path}/#{$name}.png');
background-image: url('#{$image-path}/#{$name}.svg');

&::before {
background-color: map-get($alerts-bar, $name);
Expand Down
10 changes: 5 additions & 5 deletions packages/css-library/src/stylesheets/modules/m-alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
width: 100%;

&::before {
background-image: url("#{$image-path}/alerts/info.svg");
background-image: url("#{$image-path}/info.svg");
background-size: 35px 35px;
background-repeat: no-repeat;
background-position: center;
Expand Down Expand Up @@ -80,7 +80,7 @@
border-left-color: $color-primary-alt-dark;

&::before {
background-image: url("#{$image-path}/alerts/info.svg");
background-image: url("#{$image-path}/info.svg");
}

&.background-color-only {
Expand All @@ -92,7 +92,7 @@
border-left-color: $color-secondary-dark;

&::before {
background-image: url("#{$image-path}/alerts/error.svg");
background-image: url("#{$image-path}/error.svg");
}

&.background-color-only {
Expand All @@ -104,7 +104,7 @@
border-left-color: $color-green;

&::before {
background-image: url("#{$image-path}/alerts/success.svg");
background-image: url("#{$image-path}/success.svg");
}

&.background-color-only {
Expand All @@ -116,7 +116,7 @@
border-left-color: $color-gold;

&::before {
background-image: url("#{$image-path}/alerts/warning.svg");
background-image: url("#{$image-path}/warning.svg");
}

&.background-color-only {
Expand Down

0 comments on commit 8857ee7

Please sign in to comment.