Skip to content

Commit eb4f41c

Browse files
committed
style: fix required '*' for select color and radio
1 parent cb43ca1 commit eb4f41c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/FormGroup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const shouldHaveLabel = computed(() => {
6262
</template>
6363

6464
<style>
65-
.form-group:has(input[required]) label::after {
65+
.form-group:has(input[required],select[required]) label:first-child::after {
6666
content: "*";
6767
font-size: .9em;
6868
color: red;

src/fields/input/FieldColor.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:id="id"
55
:name="field.name"
66
@change="onFieldValueChanged"
7+
:required="isRequired"
78
/>
89
</template>
910

src/fields/input/FieldRadio.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:name="field.name"
88
:value="option.value"
99
@change="onFieldValueChanged"
10+
:required="isRequired"
1011
/>
1112
<label :for="getFieldId(option.name)"> {{ option.name }} </label>
1213
</div>

0 commit comments

Comments
 (0)