Styles placeholder select state.
This commit is contained in:
parent
59d5cd453a
commit
4163f8d96b
|
@ -12,6 +12,7 @@
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:placeholder="itemMetadatum.metadatum.placeholder ? itemMetadatum.metadatum.placeholder : $i18n.get('label_selectbox_init')"
|
:placeholder="itemMetadatum.metadatum.placeholder ? itemMetadatum.metadatum.placeholder : $i18n.get('label_selectbox_init')"
|
||||||
:model-value="value"
|
:model-value="value"
|
||||||
|
:class="{ 'has-placeholder-selected': value === '' }"
|
||||||
@update:model-value="onSelected($event)">
|
@update:model-value="onSelected($event)">
|
||||||
<option value="">
|
<option value="">
|
||||||
{{ itemMetadatum.metadatum.placeholder ? itemMetadatum.metadatum.placeholder : ($i18n.get('label_selectbox_init') + '...') }}
|
{{ itemMetadatum.metadatum.placeholder ? itemMetadatum.metadatum.placeholder : ($i18n.get('label_selectbox_init') + '...') }}
|
||||||
|
|
|
@ -43,7 +43,11 @@
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: var(--tainacan-input-color) !important;
|
border-color: var(--tainacan-input-color) !important;
|
||||||
}
|
}
|
||||||
|
&.has-placeholder-selected,
|
||||||
|
&.has-placeholder-selected:hover,
|
||||||
|
&.has-placeholder-selected:focus {
|
||||||
|
color: var(--tainacan-info-color) !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&:not(.is-loading)::after {
|
&:not(.is-loading)::after {
|
||||||
content: "arrowdown" !important;
|
content: "arrowdown" !important;
|
||||||
|
|
Loading…
Reference in New Issue