Fixes invalid class to is-danger state on date input.

This commit is contained in:
mateuswetah 2023-02-01 12:10:55 -03:00
parent f538ee53f7
commit 1e6e79b236
5 changed files with 6 additions and 4 deletions

View File

@ -31,7 +31,8 @@
flex-direction: column;
border-radius: 4px;
border: 1px solid rgba(200, 200, 200, 0.3);
overflow: hidden; }
overflow: hidden;
box-sizing: border-box; }
.wp-block-tainacan-item-submission-form .item-submission-form-placeholder .fake-text {
background-color: var(--tainacan-label-color, rgba(200, 200, 200, 0.3));
height: 0.25em;

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@
<b-input
:id="'tainacan-item-metadatum_id-' + itemMetadatum.metadatum.id + (itemMetadatum.parent_meta_id ? ('_parent_meta_id-' + itemMetadatum.parent_meta_id) : '')"
:disabled="disabled"
:class="{'is-danger': isInvalidDate && dateValue}"
:custom-class="{ 'is-danger': isInvalidDate && dateValue }"
type="text"
v-mask="dateMask"
v-model="dateValue"

View File

@ -595,7 +595,7 @@
</div>
<div class="wp-block-button">
<button
:disbuttonbled="showTermsAgreementCheckbox && !userHasAgreedToTerms"
:disabled="showTermsAgreementCheckbox && !userHasAgreedToTerms"
@click="onSubmit()"
type="button"
class="wp-block-button__link wp-element-button">

View File

@ -41,6 +41,7 @@
border-radius: 4px;
border: 1px solid rgba(200,200,200, 0.3);
overflow: hidden;
box-sizing: border-box;
.fake-text {
background-color: var(--tainacan-label-color, rgba(200,200,200, 0.3));