Skip to content

Commit 22538c6

Browse files
committed
fix: update TextArea disabled styles, add data-radius attribute
1 parent 03ce1ac commit 22538c6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/components/inputs/TextArea.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const resetClass = buildPropsClass(props, ['size', 'variant', 'resize', 'class']
3535
class="ui-TextArea"
3636
:class="resetClass"
3737
:data-accent-color="props.color"
38+
:data-radius="props.radius"
3839
>
3940
<textarea
4041
v-model="modelValue"
@@ -53,7 +54,6 @@ const resetClass = buildPropsClass(props, ['size', 'variant', 'resize', 'class']
5354
font-style: normal;
5455
text-align: start;
5556
overflow: hidden;
56-
padding: var(--text-area-border-width);
5757
width: 100%;
5858
}
5959
.ui-TextAreaInput {
@@ -72,6 +72,9 @@ const resetClass = buildPropsClass(props, ['size', 'variant', 'resize', 'class']
7272
outline: none;
7373
box-shadow: none;
7474
}
75+
.ui-TextAreaInput:where(:disabled) {
76+
cursor: not-allowed;
77+
}
7578
.ui-TextAreaInput::-webkit-scrollbar {
7679
width: var(--space-3);
7780
height: var(--space-3);
@@ -141,9 +144,8 @@ const resetClass = buildPropsClass(props, ['size', 'variant', 'resize', 'class']
141144
.ui-TextArea:where(.r-variant-surface) .ui-TextAreaInput::placeholder {
142145
color: var(--gray-a10);
143146
}
144-
.ui-TextArea:where(.r-variant-surface) .ui-TextAreaInput:where(:disabled, :read-only) {
147+
.ui-TextArea:where(.r-variant-surface) :where(.ui-TextAreaInput:read-only) {
145148
background-image: linear-gradient(var(--gray-a2), var(--gray-a2));
146-
box-shadow: inset 0 0 0 var(--text-area-border-width) var(--gray-a6);
147149
}
148150
.ui-TextArea:where(.r-variant-soft) {
149151
--text-area-border-width: 0px;
@@ -161,7 +163,7 @@ const resetClass = buildPropsClass(props, ['size', 'variant', 'resize', 'class']
161163
color: var(--accent-12);
162164
opacity: 0.65;
163165
}
164-
.ui-TextArea:where(.r-variant-soft) .ui-TextAreaInput:where(:disabled, :read-only) {
166+
.ui-TextArea:where(.r-variant-soft) :where(.ui-TextAreaInput:read-only) {
165167
background-image: linear-gradient(var(--gray-a2), var(--gray-a2));
166168
box-shadow: inset 0 0 0 var(--text-area-border-width) var(--gray-a6);
167169
}

0 commit comments

Comments
 (0)