Skip to content

Commit

Permalink
Restore Slider input borders and add disabled for error input
Browse files Browse the repository at this point in the history
Signed-off-by: srikant <[email protected]>
  • Loading branch information
srikant-ch5 committed Feb 2, 2024
1 parent 21aef26 commit f9e3e21
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,23 @@
min-width: unset; // Default Carbon Component Slider has a fixed min-width of 12.5rem so unset it to make it responsive
}
}
.bx--number[data-invalid] { // carbon override to not display error
.bx--form-requirement { // carbon override to not display error
display: none;
}
}
&.error {
input {
.bx--text-input--invalid, .bx--text-input {
outline: unset;
outline-offset: unset;
}
input[type="number"]:not([disabled]), input[type="number"]:focus:not([disabled]) {
border: 2px solid $support-01;
}
}
&.warning {
input:not([disabled]) {
.bx--text-input--invalid, .bx--text-input {
outline: unset;
outline-offset: unset;
}
input[type="number"]:not([disabled]), input[type="number"]:focus:not([disabled]) {
border: 2px solid $support-03;
}
}
.bx--text-input--invalid, .bx--text-input {
outline: unset;
outline-offset: unset;
border: unset;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
"control": "slider",
"min_value": 10,
"max_value": 100,
"increment": 10,
"increment": 1,
"description": {
"default": "Slider error with range more than Max'"
}
Expand Down

0 comments on commit f9e3e21

Please sign in to comment.