Skip to content

Commit b62b7a5

Browse files
committed
updated button styles in color-test page
1 parent 8c27469 commit b62b7a5

File tree

2 files changed

+32
-14
lines changed

2 files changed

+32
-14
lines changed

assets/_scss/_color-test.scss

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ $cultured-white-lighter: #FFF;
2020
$turquoise-lighter: lighten($turquoise, 10%);
2121
$crayola-pink-lighter: lighten($crayola-pink, 10%);
2222
$honey-yellow-lighter: lighten($honey-yellow, 10%);
23+
$turquoise-darker: darken($turquoise, 10%);
24+
$crayola-pink-darker: darken($crayola-pink, 10%);
25+
$honey-yellow-darker: darken($honey-yellow, 10%);
2326
//
2427
// Settings
2528
// --------------------------------------------------
@@ -37,9 +40,15 @@ $honey-yellow-lighter: lighten($honey-yellow, 10%);
3740
color: $turquoise !important;
3841
}
3942

43+
// .CT-body a:hover, .CT-body a:focus {
44+
// background-color: $black !important;
45+
// color: $cultured-white !important;
46+
// }
47+
48+
49+
// Alternative hover effect:
4050
.CT-body a:hover, .CT-body a:focus {
41-
background-color: $black !important;
42-
color: $cultured-white !important;
51+
color: $crayola-pink !important;
4352
}
4453

4554
.CT-body hr{
@@ -74,50 +83,59 @@ $honey-yellow-lighter: lighten($honey-yellow, 10%);
7483
background-color: $honey-yellow;
7584
color: $black;
7685
&:hover {
77-
background-color: $honey-yellow-lighter;
86+
background-color: transparent;
87+
color: $honey-yellow-lighter;
88+
border-color: $honey-yellow-darker;
7889
}
7990
}
8091

8192
.CT-body .ct-btn-outline-light{
8293
border-color: $honey-yellow;
8394
color: $honey-yellow;
8495
&:hover {
85-
border-color: $honey-yellow-lighter;
86-
color: $honey-yellow-lighter;
96+
background-color: $honey-yellow;
97+
color: black;
98+
border-color: $honey-yellow-darker;
8799
}
88100
}
89101

90102
.CT-body .ct-btn-middle{
91103
background-color: $crayola-pink;
92104
color: $black;
93105
&:hover {
94-
background-color: $crayola-pink-lighter;
106+
background-color: transparent;
107+
color: $crayola-pink;
108+
border-color: $crayola-pink-darker;
95109
}
96110
}
97111

98112
.CT-body .ct-btn-outline-middle{
99113
border-color: $crayola-pink;
100114
color: $crayola-pink;
101115
&:hover {
102-
border-color: $crayola-pink-lighter;
103-
color: $crayola-pink-lighter;
116+
background-color: $crayola-pink;
117+
color: black;
118+
border-color: $crayola-pink-darker;
104119
}
105120
}
106121

107122
.CT-body .ct-btn-dark{
108123
background-color: $turquoise;
109124
color: $black;
110125
&:hover {
111-
background-color: $turquoise-lighter;
126+
background-color: transparent;
127+
color: $turquoise-lighter;
128+
border-color: $turquoise-darker;
112129
}
113130
}
114131

115132
.CT-body .ct-btn-outline-dark{
116133
border-color: $turquoise;
117134
color: $turquoise;
118135
&:hover {
119-
border-color: $turquoise-lighter;
120-
color: $turquoise-lighter;
136+
background-color: $turquoise;
137+
color: black;
138+
border-color: $turquoise-darker;
121139
}
122140
}
123141

color-test.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ title: Color Test Page
1616
visual components (icons, etc.).
1717

1818
- Turquoise (#00D5C0) can be used as a foreground with Oxford Blue (#061A40) or Dark Jungle Green (#041F1E) background
19-
with sufficient contrast to WCAG 2.0 AAA for regular font, larger font, and visual components (icons, etc.).
19+
with sufficient contrast to WCAG 2.0 AAA for regular font, [larger font](#), and visual components (icons, etc.).
2020

2121
- Shocking Crayola Pink (#FA62F0) can be used as a foreground with Dark Jungle Green (#041F1E) background for WCAG AA,
2222
but it does not meet WCAG AAA for regular font (large font and visual components like icons okay).
2323

24-
- For any other combination (e.g. "Cultured" white (#F5F5F5) on Turquoise (#00D5C0) , Shocking Crayola Pink (#FA62F0) on
24+
- For any other combination (e.g. ["Cultured" white (#F5F5F5)](#) on Turquoise (#00D5C0) , Shocking Crayola Pink (#FA62F0) on
2525
Oxford Blue (#061A40), do a test.)
2626

2727
- Feel free to use shades or tints of colors to achieve accessible results.
2828

29+
## [Buttons](#)
2930
<div class="mt-5">
30-
##Buttons
3131
<p>Customized buttons here <button class="btn ct-btn-light">button light</button> <button type="button" class="btn ct-btn-outline-light">light outline</button></p>
3232
<p>Customized buttons here <button class="btn ct-btn-middle">button middle</button> <button type="button" class="btn ct-btn-outline-middle">middle outline</button></p>
3333
<p>Customized buttons here <button class="btn ct-btn-dark">button dark</button> <button type="button" class="btn ct-btn-outline-dark">middle dark</button></p>

0 commit comments

Comments
 (0)