Skip to content

Commit

Permalink
fix(inputs): use k-hidden instead of display none to show hide warnin…
Browse files Browse the repository at this point in the history
…g icon
  • Loading branch information
joneff committed Sep 11, 2021
1 parent 046d443 commit 7e387d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
17 changes: 0 additions & 17 deletions packages/default/scss/datetime/_layout.scss
Expand Up @@ -79,17 +79,12 @@

// Validation icon
.k-i-warning {
display: none;
position: absolute;
right: $padding-x;
top: 50%;
transform: translateY(-50%);
overflow: visible;
}
&.k-invalid .k-i-warning,
&.k-state-invalid .k-i-warning {
display: inline-block;
}


// RTL
Expand Down Expand Up @@ -191,18 +186,12 @@

// Validation icon
.k-i-warning {
display: none;
position: absolute;
top: 50%;
right: calc( #{ $button-inner-calc-size } + #{ $input-padding-x-sm });
transform: translateY(-50%);
overflow: visible;
}
.k-state-invalid {
.k-i-warning {
display: inline-block;
}
}


// RTL
Expand Down Expand Up @@ -292,18 +281,12 @@

// Validation icon
.k-i-warning {
display: none;
position: absolute;
top: 50%;
right: calc( #{ $button-inner-calc-size } * 2 + #{ $input-padding-x-sm });
transform: translateY(-50%);
overflow: visible;
}
.k-state-invalid {
.k-i-warning {
display: inline-block;
}
}


// RTL
Expand Down
5 changes: 0 additions & 5 deletions packages/default/scss/maskedtextbox/_layout.scss
Expand Up @@ -23,15 +23,10 @@

&.k-state-invalid {
transition: none;

+ .k-i-warning {
display: inline-block;
}
}
}

.k-i-warning {
display: none;
position: absolute;
top: 50%;
transform: translateY(-50%);
Expand Down
4 changes: 4 additions & 0 deletions packages/default/scss/numerictextbox/_theme.scss
Expand Up @@ -3,6 +3,10 @@
// Numeric
.k-numerictextbox {

.k-i-warning {
color: $error;
}

// Normal state
.k-numeric-wrap {
@include fill(
Expand Down

0 comments on commit 7e387d7

Please sign in to comment.