Skip to content

Commit

Permalink
🐛 fix(checkbox): swicht remove margin top when flat (#1464)
Browse files Browse the repository at this point in the history
* Create PR for #1463

* fix(checkbox): remove margin top when set to flat for switch

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gery Hirschfeld <[email protected]>
  • Loading branch information
github-actions[bot] and hirsch88 authored Sep 17, 2024
1 parent 8b1f94a commit fbcfdf2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-plums-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@baloise/ds-core': patch
---

**checkbox**: remove margin top when set to flat for switch
4 changes: 4 additions & 0 deletions packages/core/src/components/bal-checkbox/radio-checkbox.sass
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,10 @@ bal-radio .bal-radio-checkbox__label
&:active
.bal-radio-checkbox__label::after
background: var(--bal-radio-checkbox-switch-label-background-active-after)
&--switch#{&}--flat
.bal-radio-checkbox__label::before,
.bal-radio-checkbox__label::after
margin-top: 0
&--switch#{&}--checked
.bal-radio-checkbox__label::before
background: var(--bal-radio-checkbox-switch-label-background-checked-before)
Expand Down

0 comments on commit fbcfdf2

Please sign in to comment.