Skip to content

Commit

Permalink
refactor(switch): select input by class name.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 463479217
  • Loading branch information
material-web-copybara authored and copybara-github committed Jul 27, 2022
1 parent b315d62 commit 92a5ee4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion switch/lib/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ $icon-enter-duration: $animation-duration - $icon-exit-duration;
}
}

input {
.md3-switch__input {
@include _input;
}
}
Expand Down
1 change: 1 addition & 0 deletions switch/lib/switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export class Switch extends ActionElement {
</button>
<input
class="md3-switch__input"
type="checkbox"
aria-hidden="true"
name="${this.name}"
Expand Down

0 comments on commit 92a5ee4

Please sign in to comment.