Skip to content

Commit 6d82cdf

Browse files
committed
refactor(checkbox): targetting checkbox through instead of new class
1 parent 247f6d6 commit 6d82cdf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

core/src/components/checkbox/checkbox.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
* The native control it must be hidden with display:none instead of aria-hidden="true"
107107
* to avoid nested interactive elements accessibility issues
108108
*/
109-
.checkbox-native-control {
109+
input {
110110
display: none;
111111
}
112112

core/src/components/checkbox/checkbox.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ export class Checkbox implements ComponentInterface {
298298
*/}
299299
<input
300300
type="checkbox"
301-
class="checkbox-native-control"
302301
checked={checked ? true : undefined}
303302
disabled={disabled}
304303
id={inputId}

0 commit comments

Comments
 (0)