Skip to content

Commit

Permalink
fix(switch): unselected handle too big with selected icon only
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 557923981
  • Loading branch information
asyncLiz authored and Copybara-Service committed Aug 17, 2023
1 parent 2bbab09 commit ecf83a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion switch/internal/switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class Switch extends LitElement {

private renderHandle() {
const classes = {
'with-icon': this.icons || (this.showOnlySelectedIcon && this.selected),
'with-icon': this.showOnlySelectedIcon ? this.selected : this.icons,
};
return html`
${this.renderTouchTarget()}
Expand Down

0 comments on commit ecf83a0

Please sign in to comment.