Skip to content

Commit

Permalink
fix: menu options z-index (#402) (#404)
Browse files Browse the repository at this point in the history
Co-authored-by: Greg DeYoung <[email protected]>
  • Loading branch information
gdeyoung3 and gdeyoungnrs authored Jun 16, 2022
1 parent a73a952 commit 43987ba
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions src/lib/components/menu/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { MdArrowDropDown, MdArrowDropUp } from "react-icons/md";
import type { ButtonProps } from "../button";
import { useMenu } from ".";
import { Menu } from "./menu";
import styles from "./menu.module.css";

export function ButtonMenu({
className: classNameOverride,
Expand Down Expand Up @@ -38,7 +37,6 @@ export function ButtonMenu({
aria-controls={menuId}
aria-expanded={expanded}
aria-haspopup="menu"
className={styles.control}
id={id}
onClick={handleClickControl}
onKeyDown={handleKeyDownControl}
Expand Down
2 changes: 0 additions & 2 deletions src/lib/components/menu/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { MdArrowDropDown, MdArrowDropUp } from "react-icons/md";
import type { InputProps } from "../input";
import { useMenu } from ".";
import { Menu } from "./menu";
import styles from "./menu.module.css";

export const InputMenu = forwardRef<
HTMLInputElement,
Expand Down Expand Up @@ -50,7 +49,6 @@ export const InputMenu = forwardRef<
aria-controls={menuId}
aria-expanded={expanded}
aria-haspopup="menu"
className={styles.control}
flex={flex}
id={id}
onClick={handleClickControl}
Expand Down
5 changes: 1 addition & 4 deletions src/lib/components/menu/menu.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
display: flex;
flex-direction: column;
margin-top: 0.2rem;
z-index: 3;
}

.menu.input {
Expand Down Expand Up @@ -104,7 +105,3 @@
.separator {
border-top: 0.1rem solid var(--md-color-outline);
}

.control[aria-expanded="true"] {
z-index: 3;
}

0 comments on commit 43987ba

Please sign in to comment.