switch: style fix when padding==0
This commit is contained in:
parent
8a9433846f
commit
dcfb6af1a9
2 changed files with 14 additions and 1 deletions
|
|
@ -116,6 +116,14 @@ class Switch extends MenuBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
setCssVariables() {
|
||||
|
||||
super.setCssVariables()
|
||||
|
||||
this.container.classList.toggle('padding-0', this.getProp('padding') === -1)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Switch.cssVariables = Switch.prototype.constructor.cssVariables.concat(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue