fix: Update company picker keyboard navigation (#1628)
* fix: scroll * fix: use ref * fix: new changes * fix: remove ref * fix: state * chore: clean up * Include Empty option * Include Empty option * Include Empty option * Fix tests --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
import { css } from '@emotion/react';
|
||||
import styled from '@emotion/styled';
|
||||
|
||||
import { MenuItem } from '@/ui/menu-item/components/MenuItem';
|
||||
|
||||
const StyledCreateNewButton = styled(MenuItem)<{ hovered: boolean }>`
|
||||
${({ hovered, theme }) =>
|
||||
hovered &&
|
||||
css`
|
||||
background: ${theme.background.transparent.light};
|
||||
`}
|
||||
`;
|
||||
|
||||
export const CreateNewButton = StyledCreateNewButton;
|
||||
Reference in New Issue
Block a user