primeng-sass-theme
primeng-sass-theme copied to clipboard
There is no possibility of changing the way error styles are applied to inputs
Currently, input is marked as having errors using the following styles
.p-inputtext.ng-dirty.ng-invalid { @include invalid-input(); }
In my opinion, it is not entirely correct. Let's say I want to show errors only when the user performs some action, and not immediately when he changes the input. I suggest doing the following:
.p-show-error .p-inputtext.ng-invalid { @include invalid-input(); }
In that case, I can decide when to apply the error state to inputs simply by adding .p-show-error to the parent. Now I have to modify the theme base to achieve this result, so theme updates take a lot of time.