Skip to content

Commit f939ab0

Browse files
lint.fix;
1 parent d01cc5c commit f939ab0

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

core/src/components/checkbox/checkbox.ionic.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ input {
274274
}
275275
}
276276

277-
278277
// Ionic Design Checkbox Shapes
279278
// --------------------------------------------------
280279
:host(.checkbox-shape-soft) {

core/src/components/checkbox/checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export class Checkbox implements ComponentInterface {
246246
* be treated as not having helper/error text.
247247
*/
248248
const hasHelperText = !!helperText;
249-
const hasErrorText = (!!errorText && !checked);
249+
const hasErrorText = !!errorText && !checked;
250250
if (!hasHelperText && !hasErrorText) {
251251
return;
252252
}

core/src/components/checkbox/test/states/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ <h2>Focused, Invalid</h2>
8989

9090
<div class="grid-item">
9191
<h2>Disabled, Invalid</h2>
92-
<ion-checkbox disabled="true" error-text="Error text" class="ion-invalid">Enable Notifications</ion-checkbox>
92+
<ion-checkbox disabled="true" error-text="Error text" class="ion-invalid"
93+
>Enable Notifications
94+
</ion-checkbox>
9395
</div>
9496
</div>
9597
</ion-content>

0 commit comments

Comments
 (0)