Skip to content

Commit 5a1190b

Browse files
committed
Adds warning color classes to buttons
1 parent 3dd792d commit 5a1190b

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

scss/components/_button.scss

+25
Original file line numberDiff line numberDiff line change
@@ -284,3 +284,28 @@ table.button.alert:hover {
284284
}
285285
}
286286
}
287+
288+
table.button.warning {
289+
table {
290+
td {
291+
background: $warning-color;
292+
border: 2px solid $warning-color;
293+
}
294+
295+
a {
296+
border: 0px solid $warning-color;
297+
}
298+
}
299+
}
300+
301+
table.button.warning:hover {
302+
table {
303+
td {
304+
background: darken($warning-color, 10%);
305+
}
306+
307+
a {
308+
border: 0px solid darken($warning-color, 10%);
309+
}
310+
}
311+
}

test/visual/pages/button-inky.html

+5
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
<button class="alert" href="http://zurb.com">I alert</button>
4040
</columns>
4141
</row>
42+
<row>
43+
<columns small="12" large="12">
44+
<button class="warning" href="http://zurb.com">I warn</button>
45+
</columns>
46+
</row>
4247
<row>
4348
<columns small="12" large="12">
4449
<button href="http://zurb.com" href="http://zurb.com" class="expand">I expand</button>

test/visual/pages/button.html

+22
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,28 @@
210210
</tr>
211211
</table>
212212

213+
<table class="row">
214+
<tr>
215+
<th class="small-12 large-12 columns">
216+
217+
<table class="button warning">
218+
<tr>
219+
<td>
220+
<table>
221+
<tr>
222+
<td>
223+
<a href="https://zurb.com">I warn</a>
224+
</td>
225+
</tr>
226+
</table>
227+
</td>
228+
</tr>
229+
</table>
230+
231+
</th>
232+
</tr>
233+
</table>
234+
213235
<table class="row">
214236
<tr>
215237
<td class="small-12 large-12 columns">

0 commit comments

Comments
 (0)