Skip to content

Commit 0978431

Browse files
committed
fix: restore right padding on checkbox button variant
1 parent 4990752 commit 0978431

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/olive-pants-unite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@darkmagic/react': minor
3+
---
4+
5+
fix: add right padding on checkbox button variant

packages/react/src/components/checkbox.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const Container = styled('label', {
142142
'& > div:first-child': {
143143
padding: '$1',
144144
},
145-
'& label': {
145+
'& > div:last-child': {
146146
paddingRight: '$1',
147147
},
148148
},
@@ -155,7 +155,7 @@ const Container = styled('label', {
155155
'& > div:first-child': {
156156
padding: '$2',
157157
},
158-
'& label': {
158+
'& > div:last-child': {
159159
paddingRight: '$2',
160160
},
161161
},
@@ -168,7 +168,7 @@ const Container = styled('label', {
168168
'& > div:first-child': {
169169
padding: '$2',
170170
},
171-
'& label': {
171+
'& > div:last-child': {
172172
paddingRight: '$2',
173173
},
174174
},

0 commit comments

Comments
 (0)