Skip to content

Commit c75434c

Browse files
committed
styling
1 parent b0736cb commit c75434c

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

packages/uui-textarea/lib/uui-textarea.element.ts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,27 @@ export class UUITextareaElement extends FormControlMixin(LitElement) {
3939
margin-bottom: var(--uui-size-1);
4040
font-weight: bold;
4141
}
42+
43+
textarea[readonly] {
44+
border-color: var(
45+
--uui-input-border-color-readonly,
46+
var(--uui-interface-border-readonly)
47+
);
48+
}
4249
textarea[disabled] {
4350
cursor: not-allowed;
4451
background-color: var(
4552
--uui-textarea-background-color-disabled,
4653
var(--uui-interface-surface-disabled)
4754
);
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+
);
5359
5460
color: var(--uui-interface-contrast-disabled);
5561
}
62+
5663
textarea {
5764
font-family: inherit;
5865
box-sizing: border-box;
@@ -67,8 +74,10 @@ export class UUITextareaElement extends FormControlMixin(LitElement) {
6774
min-height: var(--uui-textarea-min-height);
6875
max-height: var(--uui-textarea-max-height);
6976
}
70-
:host(:hover) textarea,
71-
:host(:focus-within) textarea,
77+
:host(:hover)
78+
textarea:not([readonly]):not([disabled])
79+
:host(:focus-within)
80+
textarea,
7281
:host(:focus) textarea {
7382
border-color: var(
7483
--uui-textarea-border-color,

0 commit comments

Comments
 (0)