Skip to content

Commit

Permalink
Fix popover z-index (#3459)
Browse files Browse the repository at this point in the history
  • Loading branch information
olliecurtis authored May 17, 2024
1 parent 6c41101 commit f36e401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions packages/bpk-component-popover/src/BpkPopover.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,8 @@

$arrow-size: tokens.bpk-spacing-lg();

.bpk-popover-portal {
.bpk-popover-container {
z-index: tokens.$bpk-zindex-popover;

@include breakpoints.bpk-breakpoint-mobile {
margin-right: tokens.bpk-spacing-base();
margin-left: tokens.bpk-spacing-base();
}
}

.bpk-popover {
Expand Down
1 change: 1 addition & 0 deletions packages/bpk-component-popover/src/BpkPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ const BpkPopover = ({
{isOpenState && (
<FloatingFocusManager context={context} modal={false}>
<div
className={getClassName('bpk-popover--container')}
ref={refs.setFloating}
style={floatingStyles}
{...getFloatingProps()}
Expand Down

0 comments on commit f36e401

Please sign in to comment.