diff --git a/src/front/Components/DesignSystem/Dropdown/DropdownMenu/DropdownOption/classes.module.scss b/src/front/Components/DesignSystem/Dropdown/DropdownMenu/DropdownOption/classes.module.scss index 884a962d..e959747b 100644 --- a/src/front/Components/DesignSystem/Dropdown/DropdownMenu/DropdownOption/classes.module.scss +++ b/src/front/Components/DesignSystem/Dropdown/DropdownMenu/DropdownOption/classes.module.scss @@ -10,6 +10,18 @@ background: var(--dropdown-option-background-default, #fff); + svg { + width: 24px; + height: 24px; + } + + .content { + display: flex; + flex-direction: column; + align-items: flex-start; + flex: 1 0 0; + } + &:hover { background-color: var(--dropdown-option-background-hovered); } diff --git a/src/front/Components/DesignSystem/Dropdown/DropdownMenu/DropdownOption/index.tsx b/src/front/Components/DesignSystem/Dropdown/DropdownMenu/DropdownOption/index.tsx index 05be3eb9..1970ab48 100644 --- a/src/front/Components/DesignSystem/Dropdown/DropdownMenu/DropdownOption/index.tsx +++ b/src/front/Components/DesignSystem/Dropdown/DropdownMenu/DropdownOption/index.tsx @@ -1,13 +1,13 @@ +import IconButton from "@Front/Components/DesignSystem/IconButton"; import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Typography"; import { CheckIcon } from "@heroicons/react/24/outline"; import { useCallback } from "react"; import classes from "./classes.module.scss"; -import IconButton from "@Front/Components/DesignSystem/IconButton"; export type IOption = { id: string; - label: string; + label: string | { text: string; subtext: string }; }; type IProps = { @@ -23,12 +23,34 @@ export default function DropdownOption(props: IProps) { return (