Skip to content

Commit 06c8320

Browse files
authored
ToggleSwitch: Add overflow: hidden to .StatusTextItem (#7399)
1 parent 501a41f commit 06c8320

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/swift-keys-thank.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
ToggleSwitch: Adds `overflow: hidden` to `.StatusTextItem` when hidden

packages/react/src/ToggleSwitch/ToggleSwitch.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
.StatusTextItem:where([data-hidden='true']) {
5454
visibility: hidden;
5555
height: 0;
56+
overflow: hidden;
5657
}
5758

5859
.SwitchButton {

0 commit comments

Comments
 (0)