Restored p-error for error texts and p-invalid for invalid form elements

pull/864/head
Cagatay Civici 2021-01-13 18:20:46 +03:00
parent 0afaa3777a
commit 6f7880f633
41 changed files with 48 additions and 45 deletions

View File

@ -8,7 +8,6 @@
- New Viva Theme [\#856](https://github.com/primefaces/primevue/issues/856)
- Improve invalid validation visuals on material themes [\#855](https://github.com/primefaces/primevue/issues/855)
- Remove p-error in favor of p-invalid [\#854](https://github.com/primefaces/primevue/issues/854)
- New Lazy DataTable Demo with Remote Source [\#841](https://github.com/primefaces/primevue/issues/841)
- Touch support for Slider [\#757](https://github.com/primefaces/primevue/issues/757)

View File

@ -32,7 +32,7 @@
opacity: 0.4;
}
.p-invalid {
.p-error {
color: #ef9a9a;
}

View File

@ -32,7 +32,7 @@
opacity: 0.4;
}
.p-invalid {
.p-error {
color: #ef9a9a;
}

View File

@ -32,7 +32,7 @@
opacity: 0.4;
}
.p-invalid {
.p-error {
color: #ef9a9a;
}

View File

@ -32,7 +32,7 @@
opacity: 0.4;
}
.p-invalid {
.p-error {
color: #ef9a9a;
}

View File

@ -32,7 +32,7 @@
opacity: 0.65;
}
.p-invalid {
.p-error {
color: #f19ea6;
}

View File

@ -32,7 +32,7 @@
opacity: 0.65;
}
.p-invalid {
.p-error {
color: #f19ea6;
}

View File

@ -32,7 +32,7 @@
opacity: 0.65;
}
.p-invalid {
.p-error {
color: #dc3545;
}

View File

@ -32,7 +32,7 @@
opacity: 0.65;
}
.p-invalid {
.p-error {
color: #dc3545;
}

View File

@ -32,7 +32,7 @@
opacity: 0.6;
}
.p-invalid {
.p-error {
color: #a4252c;
}

View File

@ -32,7 +32,7 @@
opacity: 0.5;
}
.p-invalid {
.p-error {
color: #e57373;
}

View File

@ -32,7 +32,7 @@
opacity: 0.5;
}
.p-invalid {
.p-error {
color: #e57373;
}

View File

@ -32,7 +32,7 @@
opacity: 0.5;
}
.p-invalid {
.p-error {
color: #e57373;
}

View File

@ -32,7 +32,7 @@
opacity: 0.5;
}
.p-invalid {
.p-error {
color: #e57373;
}

View File

@ -56,7 +56,7 @@
opacity: 0.38;
}
.p-invalid {
.p-error {
color: #f44435;
}

View File

@ -56,7 +56,7 @@
opacity: 0.38;
}
.p-invalid {
.p-error {
color: #f44435;
}

View File

@ -56,7 +56,7 @@
opacity: 0.38;
}
.p-invalid {
.p-error {
color: #B00020;
}

View File

@ -56,7 +56,7 @@
opacity: 0.38;
}
.p-invalid {
.p-error {
color: #B00020;
}

View File

@ -56,7 +56,7 @@
opacity: 0.38;
}
.p-invalid {
.p-error {
color: #f44435;
}

View File

@ -56,7 +56,7 @@
opacity: 0.38;
}
.p-invalid {
.p-error {
color: #f44435;
}

View File

@ -56,7 +56,7 @@
opacity: 0.38;
}
.p-invalid {
.p-error {
color: #B00020;
}

View File

@ -56,7 +56,7 @@
opacity: 0.38;
}
.p-invalid {
.p-error {
color: #B00020;
}

View File

@ -32,7 +32,7 @@
opacity: 0.5;
}
.p-invalid {
.p-error {
color: #a80000;
}

View File

@ -32,7 +32,7 @@
opacity: 0.5;
}
.p-invalid {
.p-error {
color: #a80000;
}

View File

@ -32,7 +32,7 @@
opacity: 0.5;
}
.p-invalid {
.p-error {
color: #a80000;
}

View File

@ -32,7 +32,7 @@
opacity: 0.5;
}
.p-invalid {
.p-error {
color: #a80000;
}

View File

@ -32,7 +32,7 @@
opacity: 0.5;
}
.p-invalid {
.p-error {
color: #e7a3a3;
}

View File

@ -32,7 +32,7 @@
opacity: 0.6;
}
.p-invalid {
.p-error {
color: #f44336;
}

View File

@ -32,7 +32,7 @@
opacity: 0.6;
}
.p-invalid {
.p-error {
color: #f44336;
}

View File

@ -32,7 +32,7 @@
opacity: 0.6;
}
.p-invalid {
.p-error {
color: #f44336;
}

View File

@ -32,7 +32,7 @@
opacity: 0.6;
}
.p-invalid {
.p-error {
color: #f44336;
}

View File

@ -32,7 +32,7 @@
opacity: 0.4;
}
.p-invalid {
.p-error {
color: #ef9a9a;
}

View File

@ -32,7 +32,7 @@
opacity: 0.4;
}
.p-invalid {
.p-error {
color: #ef9a9a;
}

View File

@ -32,7 +32,7 @@
opacity: 0.4;
}
.p-invalid {
.p-error {
color: #ef9a9a;
}

View File

@ -32,7 +32,7 @@
opacity: 0.4;
}
.p-invalid {
.p-error {
color: #ef9a9a;
}

View File

@ -73,7 +73,7 @@
<div class="p-field">
<label for="name">Name</label>
<InputText id="name" v-model.trim="product.name" required="true" autofocus :class="{'p-invalid': submitted && !product.name}" />
<small class="p-invalid" v-if="submitted && !product.name">Name is required.</small>
<small class="p-error" v-if="submitted && !product.name">Name is required.</small>
</div>
<div class="p-field">
<label for="description">Description</label>
@ -211,7 +211,7 @@
&lt;div class="p-field"&gt;
&lt;label for="name"&gt;Name&lt;/label&gt;
&lt;InputText id="name" v-model.trim="product.name" required="true" autofocus :class="{'p-invalid': submitted &amp;&amp; !product.name}" /&gt;
&lt;small class="p-invalid" v-if="submitted &amp;&amp; !product.name"&gt;Name is required.&lt;/small&gt;
&lt;small class="p-error" v-if="submitted &amp;&amp; !product.name"&gt;Name is required.&lt;/small&gt;
&lt;/div&gt;
&lt;div class="p-field"&gt;
&lt;label for="description"&gt;Description&lt;/label&gt;

View File

@ -43,7 +43,7 @@
<div class="p-field">
<label for="username2">Username</label>
<InputText id="username2" type="username" aria-describedby="username2-help" class="p-invalid" />
<small id="username2-help" class="p-invalid">Username is not available.</small>
<small id="username2-help" class="p-error">Username is not available.</small>
</div>
<h5>Disabled</h5>

View File

@ -193,7 +193,7 @@ import InputText from 'primevue/inputtext';
&lt;div class="p-field"&gt;
&lt;label for="username2"&gt;Username&lt;/label&gt;
&lt;InputText id="username2" type="username" aria-describedby="username2-help" class="p-invalid" /&gt;
&lt;small id="username2-help" class="p-invalid"&gt;Username is not available.&lt;/small&gt;
&lt;small id="username2-help" class="p-error"&gt;Username is not available.&lt;/small&gt;
&lt;/div&gt;
&lt;h5&gt;Disabled&lt;/h5&gt;
@ -273,7 +273,7 @@ export default {
<div class="p-field">
<label for="username2">Username</label>
<InputText id="username2" type="username" aria-describedby="username2-help" class="p-invalid" />
<small id="username2-help" class="p-invalid">Username is not available.</small>
<small id="username2-help" class="p-error">Username is not available.</small>
</div>
<h5>Disabled</h5>

View File

@ -12,12 +12,12 @@
<div class="p-field">
<label for="firstname">Firstname</label>
<InputText id="firstname" v-model="firstname" :class="{'p-invalid': validationErrors.firstname && submitted}" />
<small v-show="validationErrors.firstname && submitted" class="p-invalid">Firstname is required.</small>
<small v-show="validationErrors.firstname && submitted" class="p-error">Firstname is required.</small>
</div>
<div class="p-field">
<label for="lastname">Lastname</label>
<InputText id="lastname" v-model="lastname" :class="{'p-invalid': validationErrors.lastname && submitted}" />
<small v-show="validationErrors.lastname && submitted" class="p-invalid">Lastname is required.</small>
<small v-show="validationErrors.lastname && submitted" class="p-error">Lastname is required.</small>
</div>
<div class="p-field">
<label for="age">Age</label>

View File

@ -208,12 +208,12 @@ export default {
&lt;div class="p-field"&gt;
&lt;label for="firstname"&gt;Firstname&lt;/label&gt;
&lt;InputText id="firstname" v-model="firstname" :class="{'p-invalid': validationErrors.firstname && submitted}" /&gt;
&lt;small v-show="validationErrors.firstname && submitted" class="p-invalid"&gt;Firstname is required.&lt;/small&gt;
&lt;small v-show="validationErrors.firstname && submitted" class="p-error"&gt;Firstname is required.&lt;/small&gt;
&lt;/div&gt;
&lt;div class="p-field"&gt;
&lt;label for="lastname"&gt;Lastname&lt;/label&gt;
&lt;InputText id="lastname" v-model="lastname" :class="{'p-invalid': validationErrors.lastname && submitted}" /&gt;
&lt;small v-show="validationErrors.lastname && submitted" class="p-invalid"&gt;Lastname is required.&lt;/small&gt;
&lt;small v-show="validationErrors.lastname && submitted" class="p-error"&gt;Lastname is required.&lt;/small&gt;
&lt;/div&gt;
&lt;div class="p-field"&gt;
&lt;label for="age"&gt;Age&lt;/label&gt;

View File

@ -106,10 +106,14 @@ html {
<tr>
<td>p-link</td>
<td>Renders a button as a link.</td>
</tr>
<tr>
<td>p-error</td>
<td>Indicates an error text.</td>
</tr>
<tr>
<td>p-invalid</td>
<td>Applies the invalid theme color to a text or a form element.</td>
<td>Styles an form element as invalid.</td>
</tr>
<tr>
<td>p-text-secondary</td>