Skip to content

Commit cab5efa

Browse files
committed
fix(textarea): update styles due to shadow encapsulation
1 parent a401ba2 commit cab5efa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

core/src/components/textarea/textarea.common.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@
8282
// Textarea Within An Item
8383
// --------------------------------------------------
8484

85-
:host-context(ion-item) {
85+
:host(.in-item) {
8686
align-self: baseline;
8787
}
8888

89-
:host-context(ion-item)[slot="start"],
90-
:host-context(ion-item)[slot="end"] {
89+
:host(.in-item[slot="start"]),
90+
:host(.in-item[slot="end"]) {
9191
width: auto;
9292
}
9393

@@ -311,6 +311,8 @@
311311

312312
width: 100%;
313313
min-height: inherit;
314+
315+
box-sizing: border-box;
314316
}
315317

316318
// Textarea Highlight

core/src/components/textarea/textarea.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,7 @@ export class Textarea implements ComponentInterface {
854854
[`textarea-shape-${shape}`]: shape !== undefined,
855855
[`textarea-size-${size}`]: true,
856856
[`textarea-label-placement-${labelPlacement}`]: true,
857+
'in-item': inItem,
857858
'textarea-disabled': disabled,
858859
'textarea-readonly': readonly,
859860
})}

0 commit comments

Comments
 (0)