diff --git a/src/components/Dropdown/index.tsx b/src/components/Dropdown/index.tsx index 8a8d7c620..8581565e9 100644 --- a/src/components/Dropdown/index.tsx +++ b/src/components/Dropdown/index.tsx @@ -15,23 +15,54 @@ export type DropdownProps = Omit & { Icon?: FunctionComponent accent?: Accent | undefined } -function RawDropdown({ accent, className, Icon, ...originalProps }: DropdownProps) { +function RawDropdown({ accent, className, Icon, title, ...originalProps }: DropdownProps) { const controlledClassName = classnames('Component-Dropdow', className) const icon = useMemo(() => (Icon ? : undefined), [Icon]) const hasIcon = useMemo(() => Boolean(Icon), [Icon]) switch (accent) { + case Accent.TERTIARY: + return ( + + ) + case Accent.SECONDARY: - return + return ( + + ) default: - return + return ( + + ) } } // TODO We need to split into multiple styled components as done in `