Command menu list design updates (#10075)

- Add 2px gap between items
- Update `MenuItemCommand` style to distinguish `hovered` and `selected`
states



https://github.com/user-attachments/assets/d1e29f07-32e7-4ace-9aa1-0ea83712f052
This commit is contained in:
Raphaël Bosi
2025-02-07 16:55:24 +01:00
committed by GitHub
parent a24e411384
commit 988ab9697c
2 changed files with 13 additions and 7 deletions

View File

@ -48,10 +48,10 @@ const StyledMenuItemCommandContainer = styled.div<{ isSelected?: boolean }>`
user-select: none;
width: calc(100% - 2 * var(--horizontal-padding));
&:hover {
background: ${({ theme }) => theme.background.transparent.light};
background: ${({ theme }) => theme.background.transparent.lighter};
}
&[data-selected='true'] {
background: ${({ theme }) => theme.background.tertiary};
background: ${({ theme }) => theme.background.transparent.light};
}
&[data-disabled='true'] {
color: ${({ theme }) => theme.font.color.light};