Skip to content

Commit

Permalink
fix(styles): Form-switch label alignment on mobile (#4314)
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Schürch <[email protected]>
  • Loading branch information
schaertim and oliverschuerch authored Dec 19, 2024
1 parent 7508c15 commit 277ef0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-badgers-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Fixed alignment of ´form-switch´ label.
1 change: 1 addition & 0 deletions packages/styles/src/components/switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ $switch-handle-icon: url("data:image/svg+xml,<svg viewBox='0 0 16 16' xmlns='htt

.form-check-label {
color: tokens.get('switch-text-enabled-fg');
padding-block: tokens.get('switch-padding-block-container-text');

&.order-first {
flex: 0 auto;
Expand Down

0 comments on commit 277ef0d

Please sign in to comment.