Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: menu options z-index (#402) #404

Merged
merged 1 commit into from
Jun 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}