Skip to content

Commit

Permalink
fix: z-index err
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Apr 17, 2023
1 parent 89a4d88 commit 461f146
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
57 changes: 57 additions & 0 deletions docs/assets/index.c7b09a49.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class ReactKbar extends Component<ReactKbarProps> {
return (
<KBarProvider actions={actions} {...props}>
<KBarPortal>
<KBarPositioner>
<KBarPositioner className='react-kbar__positioner'>
<KBarAnimator className="react-kbar__animator">
<KBarSearch className="react-kbar__search" />
<Results />
Expand Down
4 changes: 4 additions & 0 deletions src/components/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.react-kbar {
&__positioner {
z-index: 9999;
}

&__animator {
max-width: 600px;
width: 100%;
Expand Down

0 comments on commit 461f146

Please sign in to comment.