@odx/ui 4.10.3 → 4.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/core-theme.css +1 -1
- package/package.json +1 -1
- package/scss/_controls.scss +5 -0
- package/scss/checkbox.component.scss +5 -0
- package/scss/components/checkbox.component.scss +5 -0
- package/scss/components/radio-button.component.scss +5 -0
- package/scss/components/switch.component.scss +10 -0
- package/scss/radio-button.component.scss +5 -0
- package/scss/switch.component.scss +10 -0
- package/scss/variables/_controls.scss +5 -0
package/package.json
CHANGED
package/scss/_controls.scss
CHANGED
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
--odx-control-background-color-disabled: var(--gray-100);
|
|
16
16
|
--odx-control-outline-color-disabled: transparent;
|
|
17
17
|
|
|
18
|
+
--odx-control-background-color-disabled-selected: var(--gray-600);
|
|
19
|
+
--odx-control-color-disabled-selected: var(--gray-200);
|
|
20
|
+
|
|
18
21
|
--odx-control-color-readonly: var(--odx-control-color);
|
|
19
22
|
--odx-control-background-color-readonly: transparent;
|
|
20
23
|
--odx-control-outline-color-readonly: var(--odx-control-color);
|
|
@@ -41,6 +44,8 @@
|
|
|
41
44
|
--odx-input-control-background-color-disabled: var(--gray-50);
|
|
42
45
|
--odx-input-control-outline-color-disabled: transparent;
|
|
43
46
|
|
|
47
|
+
--odx-input-control-background-color-disabled-selected: var(--gray-500);
|
|
48
|
+
|
|
44
49
|
--odx-input-control-color-readonly: var(--odx-control-color);
|
|
45
50
|
--odx-input-control-background-color-readonly: transparent;
|
|
46
51
|
--odx-input-control-outline-color-readonly: var(--odx-control-outline-color);
|
|
@@ -86,6 +86,11 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
#{$root}.is-active.is-disabled & {
|
|
90
|
+
background-color: var(--odx-input-control-background-color-disabled-selected);
|
|
91
|
+
color: var(--odx-control-color-disabled-selected);
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
#{$root}.has-error & {
|
|
90
95
|
background-color: var(--odx-control-background-color-error);
|
|
91
96
|
color: var(--odx-control-color-error);
|
|
@@ -86,6 +86,11 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
#{$root}.is-active.is-disabled & {
|
|
90
|
+
background-color: var(--odx-input-control-background-color-disabled-selected);
|
|
91
|
+
color: var(--odx-control-color-disabled-selected);
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
#{$root}.has-error & {
|
|
90
95
|
background-color: var(--odx-control-background-color-error);
|
|
91
96
|
color: var(--odx-control-color-error);
|
|
@@ -99,6 +99,11 @@
|
|
|
99
99
|
outline-color: var(--odx-control-outline-color-error-hover);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
#{$root}.is-disabled.is-active & {
|
|
103
|
+
background-color: var(--odx-control-background-color-disabled-selected);
|
|
104
|
+
color: var(--odx-c-secondary-text-disabled);
|
|
105
|
+
}
|
|
106
|
+
|
|
102
107
|
#{$root}.is-disabled & {
|
|
103
108
|
background-color: var(--odx-control-background-color-disabled);
|
|
104
109
|
color: var(--odx-control-color-disabled);
|
|
@@ -141,6 +141,16 @@
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
#{$root}.is-disabled.is-active &,
|
|
145
|
+
#{$root}.is-disabled ~ #{$root}__input:checked,
|
|
146
|
+
#{$root}.is-disabled ~ #{$root}__input:indeterminate {
|
|
147
|
+
@include indicator-color(var(--odx-control-background-color-disabled-selected));
|
|
148
|
+
|
|
149
|
+
&::before {
|
|
150
|
+
@include indicator-color(var(--odx-control-background-color-disabled-selected));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
144
154
|
#{$root}.is-disabled:not(.is-active) & {
|
|
145
155
|
@include indicator-color(var(--odx-control-background-color-disabled));
|
|
146
156
|
|
|
@@ -99,6 +99,11 @@
|
|
|
99
99
|
outline-color: var(--odx-control-outline-color-error-hover);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
#{$root}.is-disabled.is-active & {
|
|
103
|
+
background-color: var(--odx-control-background-color-disabled-selected);
|
|
104
|
+
color: var(--odx-c-secondary-text-disabled);
|
|
105
|
+
}
|
|
106
|
+
|
|
102
107
|
#{$root}.is-disabled & {
|
|
103
108
|
background-color: var(--odx-control-background-color-disabled);
|
|
104
109
|
color: var(--odx-control-color-disabled);
|
|
@@ -141,6 +141,16 @@
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
#{$root}.is-disabled.is-active &,
|
|
145
|
+
#{$root}.is-disabled ~ #{$root}__input:checked,
|
|
146
|
+
#{$root}.is-disabled ~ #{$root}__input:indeterminate {
|
|
147
|
+
@include indicator-color(var(--odx-control-background-color-disabled-selected));
|
|
148
|
+
|
|
149
|
+
&::before {
|
|
150
|
+
@include indicator-color(var(--odx-control-background-color-disabled-selected));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
144
154
|
#{$root}.is-disabled:not(.is-active) & {
|
|
145
155
|
@include indicator-color(var(--odx-control-background-color-disabled));
|
|
146
156
|
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
--odx-control-background-color-disabled: var(--gray-100);
|
|
16
16
|
--odx-control-outline-color-disabled: transparent;
|
|
17
17
|
|
|
18
|
+
--odx-control-background-color-disabled-selected: var(--gray-600);
|
|
19
|
+
--odx-control-color-disabled-selected: var(--gray-200);
|
|
20
|
+
|
|
18
21
|
--odx-control-color-readonly: var(--odx-control-color);
|
|
19
22
|
--odx-control-background-color-readonly: transparent;
|
|
20
23
|
--odx-control-outline-color-readonly: var(--odx-control-color);
|
|
@@ -41,6 +44,8 @@
|
|
|
41
44
|
--odx-input-control-background-color-disabled: var(--gray-50);
|
|
42
45
|
--odx-input-control-outline-color-disabled: transparent;
|
|
43
46
|
|
|
47
|
+
--odx-input-control-background-color-disabled-selected: var(--gray-500);
|
|
48
|
+
|
|
44
49
|
--odx-input-control-color-readonly: var(--odx-control-color);
|
|
45
50
|
--odx-input-control-background-color-readonly: transparent;
|
|
46
51
|
--odx-input-control-outline-color-readonly: var(--odx-control-outline-color);
|