File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
packages/uui-textarea/lib Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -39,20 +39,27 @@ export class UUITextareaElement extends FormControlMixin(LitElement) {
39
39
margin-bottom: var(--uui-size-1);
40
40
font-weight: bold;
41
41
}
42
+
43
+ textarea[readonly] {
44
+ border-color: var(
45
+ --uui-input-border-color-readonly,
46
+ var(--uui-interface-border-readonly)
47
+ );
48
+ }
42
49
textarea[disabled] {
43
50
cursor: not-allowed;
44
51
background-color: var(
45
52
--uui-textarea-background-color-disabled,
46
53
var(--uui-interface-surface-disabled)
47
54
);
48
- border: 1px solid
49
- var(
50
- --uui-textarea-border-color-disabled,
51
- var(--uui-interface-border-disable)
52
- );
55
+ border-color: var(
56
+ --uui-textarea-border-color-disabled,
57
+ var(--uui-interface-surface-disabled)
58
+ );
53
59
54
60
color: var(--uui-interface-contrast-disabled);
55
61
}
62
+
56
63
textarea {
57
64
font-family: inherit;
58
65
box-sizing: border-box;
@@ -67,8 +74,10 @@ export class UUITextareaElement extends FormControlMixin(LitElement) {
67
74
min-height: var(--uui-textarea-min-height);
68
75
max-height: var(--uui-textarea-max-height);
69
76
}
70
- :host(:hover) textarea,
71
- :host(:focus-within) textarea,
77
+ :host(:hover)
78
+ textarea:not([readonly]):not([disabled])
79
+ :host(:focus-within)
80
+ textarea,
72
81
:host(:focus) textarea {
73
82
border-color: var(
74
83
--uui-textarea-border-color,
You can’t perform that action at this time.
0 commit comments