Skip to content

Commit bc9d7eb

Browse files
committed
style(basic): add background to field submit
1 parent e3ff704 commit bc9d7eb

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

src/fields/buttons/FieldReset.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<input type="reset" :value="field.buttonText">
2+
<input type="reset" class="field-reset" :value="field.buttonText">
33
</template>
44

55
<script>

src/scss/modules/_colors.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
$required-color: #ea0000;
22
$hint-color: #9f9f9f;
3-
$strength-indicator-color: #00000019;
3+
$strength-indicator-color: #00000019;
4+
5+
$primary-default: #007bff;
6+
$primary-default-border: #0070e6;

src/scss/themes/basic.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,21 @@ $input-padding: .3rem .4rem;
8787
}
8888
/** End of color field */
8989

90+
/** Submit field */
91+
.field-submit {
92+
color: #efefef;
93+
background: $primary-default;
94+
border: 1px solid $primary-default-border;
95+
border-radius: 3px;
96+
&:hover {
97+
background: lighten($primary-default, 2%);
98+
}
99+
}
100+
101+
.field-reset {
102+
border-radius: 3px;
103+
}
104+
90105
/** Switch field */
91106
.field-switch {
92107
position: relative;

0 commit comments

Comments
 (0)