Skip to content

Commit a401ba2

Browse files
committed
test(textarea): fix customizing bottom content css
1 parent 391d2f6 commit a401ba2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/src/components/textarea/test/bottom-content/textarea.e2e.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
157157
await page.setContent(
158158
`
159159
<style>
160-
ion-textarea.custom-textarea.md .textarea-bottom .helper-text {
160+
ion-textarea::part(helper-text) {
161161
font-size: 20px;
162162
color: green;
163163
}
164164
</style>
165-
<ion-textarea class="custom-textarea" label="Label" helper-text="Helper text"></ion-textarea>
165+
<ion-textarea label="Label" helper-text="Helper text"></ion-textarea>
166166
`,
167167
config
168168
);
@@ -174,12 +174,12 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
174174
await page.setContent(
175175
`
176176
<style>
177-
ion-textarea.custom-textarea.md .textarea-bottom .error-text {
177+
ion-textarea::part(error-text) {
178178
font-size: 20px;
179179
color: purple;
180180
}
181181
</style>
182-
<ion-textarea class="ion-invalid ion-touched custom-textarea" label="Label" error-text="Error text"></ion-textarea>
182+
<ion-textarea class="ion-invalid ion-touched" label="Label" error-text="Error text"></ion-textarea>
183183
`,
184184
config
185185
);
@@ -193,11 +193,11 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
193193
await page.setContent(
194194
`
195195
<style>
196-
ion-textarea.custom-textarea {
196+
ion-textarea {
197197
--highlight-color-invalid: purple;
198198
}
199199
</style>
200-
<ion-textarea class="ion-invalid ion-touched custom-textarea" label="Label" error-text="Error text"></ion-textarea>
200+
<ion-textarea class="ion-invalid ion-touched" label="Label" error-text="Error text"></ion-textarea>
201201
`,
202202
config
203203
);

0 commit comments

Comments
 (0)