We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34cec96 commit 3b53e0fCopy full SHA for 3b53e0f
2 files changed
src/components/ColorField/ColorField.tsx
@@ -63,6 +63,7 @@ export const ColorField = ({
63
inputRef={ref}
64
className={classNames(`${eccgui}-colorfield`, className, {
65
[`${eccgui}-colorfield--custom-picker`]: disableNativePicker,
66
+ [`${eccgui}-colorfield--disabled`]: disabled,
67
})}
68
// we cannot use `color` type for the custom picker because we do not have control over it then
69
type={!disableNativePicker ? "color" : "text"}
src/components/ColorField/_colorfield.scss
@@ -36,6 +36,10 @@
36
}
37
38
39
+.#{$eccgui}-colorfield--disabled {
40
+ opacity: $eccgui-opacity-disabled;
41
+}
42
+
43
.#{$eccgui}-colorfield__palette {
44
& > li:has(.#{$eccgui}-colorfield__palette-linebreak) {
45
display: block;
0 commit comments