chore: consolidate super toolbar items and remove need for scroll [skip e2e]

This commit is contained in:
Aman Harwara
2023-10-25 11:14:34 +05:30
parent 04d95cc264
commit f6bfe9e868
9 changed files with 329 additions and 166 deletions

View File

@@ -7,7 +7,7 @@ import { PlatformedKeyboardShortcut } from '@standardnotes/ui-services'
import { KeyboardShortcutIndicator } from '../KeyboardShortcutIndicator/KeyboardShortcutIndicator'
import MenuListItem from './MenuListItem'
type MenuItemProps = {
export interface MenuItemProps extends ComponentPropsWithoutRef<'button'> {
children: ReactNode
onClick?: MouseEventHandler<HTMLButtonElement>
onBlur?: (event: { relatedTarget: EventTarget | null }) => void
@@ -17,7 +17,7 @@ type MenuItemProps = {
tabIndex?: number
disabled?: boolean
shortcut?: PlatformedKeyboardShortcut
} & ComponentPropsWithoutRef<'button'>
}
const MenuItem = forwardRef(
(