Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 106a7ff

Browse files
Merge pull request #396 from IHIutch/fix/switch-overflow
fix: Add position: relative to switch label
2 parents d22f950 + d05d8a4 commit 106a7ff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/chakra-ui-core/src/CSwitch/CSwitch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ const CSwitch = {
125125
as: 'label'
126126
},
127127
attrs: {
128+
position: 'relative',
128129
display: 'inline-block',
129130
verticalAlign: 'middle',
130131
...data.attrs,

packages/chakra-ui-core/src/CSwitch/tests/__snapshots__/CSwitch.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`should render correctly 1`] = `
44
<DocumentFragment>
55
<label
6-
class="css-v7ibj3"
6+
class="css-lncjus"
77
data-chakra-component="CSwitch"
88
data-testid="switch"
99
>

0 commit comments

Comments
 (0)