Skip to content

Commit 5c8a1ab

Browse files
committed
test(radio-group): fix custom css
1 parent 1e925ba commit 5c8a1ab

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

core/src/components/radio-group/test/supporting-text/index.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030
ion-radio {
3131
width: 100%;
3232
}
33+
.custom .helper-text {
34+
color: green;
35+
}
36+
.custom .error-text {
37+
color: purple;
38+
}
3339
</style>
3440
</head>
3541

@@ -154,6 +160,33 @@ <h2>Error Text</h2>
154160
</ion-radio-group>
155161
</ion-list>
156162
</div>
163+
164+
<div class="grid-item">
165+
<h2>Helper Text: Custom</h2>
166+
<ion-radio-group value="1" helper-text="Helper text" error-text="Error text" class="custom">
167+
<ion-radio value="1">Label</ion-radio>
168+
<ion-radio value="2">Label</ion-radio>
169+
<ion-radio value="3">Label</ion-radio>
170+
<ion-radio value="4">Label</ion-radio>
171+
<ion-radio value="5">Label</ion-radio>
172+
</ion-radio-group>
173+
</div>
174+
175+
<div class="grid-item">
176+
<h2>Error Text: Custom</h2>
177+
<ion-radio-group
178+
value="1"
179+
helper-text="Helper text"
180+
error-text="Error text"
181+
class="custom ion-invalid ion-touched"
182+
>
183+
<ion-radio value="1">Label</ion-radio>
184+
<ion-radio value="2">Label</ion-radio>
185+
<ion-radio value="3">Label</ion-radio>
186+
<ion-radio value="4">Label</ion-radio>
187+
<ion-radio value="5">Label</ion-radio>
188+
</ion-radio-group>
189+
</div>
157190
</div>
158191

159192
<button onclick="toggleValid()" class="expand">Toggle error</button>

core/src/components/radio-group/test/supporting-text/radio-group.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
201201
font-size: 20px;
202202
}
203203
204-
.helper-text {
204+
.radio-group-top .helper-text {
205205
color: green;
206206
}
207207
</style>
@@ -226,7 +226,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
226226
font-size: 20px;
227227
}
228228
229-
.error-text {
229+
.radio-group-top .error-text {
230230
color: purple;
231231
}
232232
</style>

0 commit comments

Comments
 (0)