Skip to content

Commit 2c47d49

Browse files
fix(date-picker): disabled state styles (#1834)
Co-authored-by: Simeon Simeonoff <[email protected]>
1 parent 2ebcc2a commit 2c47d49

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/components/date-picker/themes/shared/date-picker.common.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $input-theme: input-theme.$material;
6666
}
6767
}
6868

69-
:host(:not([readonly])) {
69+
:host(:not([disabled],[readonly])) {
7070
--affix-color: #{var-get($theme, 'input-prefix-color')};
7171

7272
igc-date-time-input[readonly] {

src/components/date-range-picker/themes/shared/date-range-picker.indigo.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $theme: $indigo;
3737
}
3838
}
3939

40-
:host(:not([readonly]):hover) {
40+
:host(:not([readonly],[disabled]):hover) {
4141
igc-input[readonly]::part(container),
4242
igc-date-time-input:hover::part(container) {
4343
background: var-get($theme, 'box-background-hover');

src/components/input/themes/shared/input.common.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $theme: $base;
3030
}
3131

3232
:host(:focus-within),
33-
:host(:not([readonly]):hover) {
33+
:host(:not([readonly],[disabled]):hover) {
3434
[part~='input']::placeholder {
3535
color: var-get($theme, 'hover-placeholder-color');
3636
}

src/components/input/themes/shared/input.fluent.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ $theme: $fluent;
9595
}
9696
}
9797

98-
:host(:not([readonly], :focus-within):hover) {
98+
:host(:not([readonly], [disabled], :focus-within):hover) {
9999
[part^='container'] {
100100
&::before {
101101
// The color: here is the actual box-shadow color. If we don't provide color-value to the shadow it
@@ -121,7 +121,7 @@ $theme: $fluent;
121121
}
122122
}
123123

124-
:host([aria-haspopup]:not([readonly], :focus-within):hover) {
124+
:host([aria-haspopup]:not([readonly], [disabled], :focus-within):hover) {
125125
[part^='container'] {
126126
&::before {
127127
color: var-get($theme, 'hover-border-color');

src/components/input/themes/shared/input.indigo.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ $transition-duration: .25s;
125125
}
126126
}
127127

128-
:host(:not([readonly]):hover),
129-
:host([readonly][role='combobox']:hover) {
128+
:host(:not([disabled],[readonly]):hover),
129+
:host(:not([disabled])[readonly][role='combobox']:hover) {
130130
[part~='filled'] {
131131
[part~='input'] {
132132
color: var-get($theme, 'filled-text-hover-color');

0 commit comments

Comments
 (0)