Skip to content

Commit 7769784

Browse files
committed
Convert alerts to use color modes
1 parent 3a97b24 commit 7769784

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/alerts/flash.scss

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
position: relative;
66
// stylelint-disable-next-line primer/spacing
77
padding: 20px $spacer-3;
8-
color: $text-gray-dark;
8+
color: var(--text-primary);
99
border-style: $border-style;
1010
border-width: $border-width;
1111
border-radius: $border-radius;
@@ -66,48 +66,48 @@
6666

6767
.flash {
6868
// stylelint-disable-next-line primer/colors
69-
background-color: $blue-100;
69+
background-color: var(--alert-bg);
7070
// stylelint-disable-next-line primer/borders
71-
border-color: rgba($blue-700, 0.2);
71+
border-color: var(--alert-border);
7272

7373
.octicon {
7474
// stylelint-disable-next-line primer/colors
75-
color: rgba($blue-700, 0.6);
75+
color: var(--alert-icon);
7676
}
7777
}
7878

7979
.flash-warn {
8080
// stylelint-disable-next-line primer/colors
81-
background-color: $yellow-100;
81+
background-color: var(--alert-warn-bg);
8282
// stylelint-disable-next-line primer/borders
83-
border-color: rgba($yellow-800, 0.2);
83+
border-color: var(--alert-warn-border);
8484

8585
.octicon {
8686
// stylelint-disable-next-line primer/colors
87-
color: rgba($yellow-800, 1);
87+
color: var(--alert-warn-icon);
8888
}
8989
}
9090

9191
.flash-error {
9292
// stylelint-disable-next-line primer/colors
93-
background-color: #ffe3e6; // custom red
93+
background-color: var(--alert-error-bg);
9494
// stylelint-disable-next-line primer/borders
95-
border-color: rgba($red-800, 0.2);
95+
border-color: var(--alert-error-border);
9696

9797
.octicon {
9898
// stylelint-disable-next-line primer/colors
99-
color: rgba($red-800, 0.6);
99+
color: var(--alert-error-icon);
100100
}
101101
}
102102

103103
.flash-success {
104-
background-color: $bg-green-light;
104+
background-color: var(--alert-success-bg);
105105
// stylelint-disable-next-line primer/borders
106-
border-color: rgba($green-700, 0.2);
106+
border-color: var(--alert-success-border);
107107

108108
.octicon {
109109
// stylelint-disable-next-line primer/colors
110-
color: rgba($green-700, 0.8);
110+
color: var(--alert-success-icon);
111111
}
112112
}
113113

0 commit comments

Comments
 (0)