Skip to content

Commit

Permalink
Add isolation:isolate to ButtonGroup container (#2910)
Browse files Browse the repository at this point in the history
* Add `isolation:isolate` to `ButtonGroup` container

* Create .changeset/fair-lobsters-sin.md

* Update snapshots
  • Loading branch information
iansan5653 committed Feb 21, 2023
1 parent 3681c92 commit 0c70192
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-lobsters-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Add `isolation:isolate` to `ButtonGroup` container
1 change: 1 addition & 0 deletions src/ButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {ComponentProps} from './utils/types'
const ButtonGroup = styled.div`
display: inline-flex;
vertical-align: middle;
isolation: isolate;
&& > * {
position: relative;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ exports[`ButtonGroup renders consistently 1`] = `
display: -ms-inline-flexbox;
display: inline-flex;
vertical-align: middle;
isolation: isolate;
}
.c0.c0 > * {
Expand Down

0 comments on commit 0c70192

Please sign in to comment.