Skip to content

Commit

Permalink
style and image path updates for alert and action link (#1378)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamigibbs authored Oct 25, 2024
1 parent e0923ba commit ed309fc
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 18 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

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

Large diffs are not rendered by default.

14 changes: 9 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.

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 Wed, 23 Oct 2024 15:16:57 GMT
* Generated on Fri, 25 Oct 2024 14:10:23 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 Wed, 23 Oct 2024 15:16:57 GMT
// Generated on Fri, 25 Oct 2024 14:10:23 GMT

$xsmall-screen: 320px;
$small-screen: 481px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use '../core-variables' as *;

@import "../../../dist/tokens/scss/variables.scss";
@import "../formation-overrides/variables";
@import "../mixins";
Expand All @@ -6,7 +8,7 @@

a.vads-c-action-link--blue, a.vads-c-action-link--green, a.vads-c-action-link--white {
&:before {
background-image: url("../../img/arrow-right-white.svg");
background-image: url("#{$image-path}/arrow-right-white.svg");
background-size: 18px 18px;
background-repeat: no-repeat;
background-position: center;
Expand Down Expand Up @@ -39,7 +41,7 @@ a.vads-c-action-link--white {
color: $vads-color-white;

&:before {
background-image: url("../../img/arrow-right.svg");
background-image: url("#{$image-path}/arrow-right.svg");
background-color: $vads-color-white;
@include color-transition;
}
Expand Down
16 changes: 11 additions & 5 deletions packages/css-library/src/stylesheets/modules/m-alert.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use '../core-variables' as *;

@import "../formation-overrides/variables";
@import "../../../dist/tokens/scss/variables.scss";
@import "../mixins";
Expand All @@ -14,10 +16,11 @@
width: 100%;

&::before {
background-image: url("../../img/alerts/info.svg");
background-image: url("#{$image-path}/alerts/info.svg");
background-size: 35px 35px;
background-repeat: no-repeat;
background-position: center;
background-color: unset;
border-radius: 50%;
content: "";
height: 31px;
Expand All @@ -27,6 +30,9 @@
font-family: unset;
font-weight: unset;
font-size: unset;
margin-right: 1rem;
position: static;
display: block;
}

// &-body would not have had high enough precedence.
Expand Down Expand Up @@ -74,7 +80,7 @@
border-left-color: $color-primary-alt-dark;

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

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

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

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

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

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

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

&.background-color-only {
Expand Down

0 comments on commit ed309fc

Please sign in to comment.