fix(filter options): full size list item targets (#31449)

This commit is contained in:
Evan Rusackas 2024-12-16 10:22:14 -07:00 committed by GitHub
parent 04077ce934
commit 48510d2ffb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 6 deletions

View File

@ -90,8 +90,9 @@ const StyleMenuItem = styled(Menu.Item)<{ divider?: boolean }>`
const StyleSubmenuItem = styled.div`
display: flex;
justify-content: space-between;
> span {
width: 100%;
width: 100%;
> div {
flex-grow: 1;
}
`;
@ -102,7 +103,7 @@ export default (props: DropDownSelectableProps) => {
() => (label: string | ReactNode, key: string, divider?: boolean) => (
<StyleMenuItem key={key} divider={divider}>
<StyleSubmenuItem>
<span>{label}</span>
{label}
{selectedKeys?.includes(key) && (
<Icons.Check
iconColor={theme.colors.primary.base}

View File

@ -62,10 +62,14 @@ export const FilterConfigurationLink: FC<FCBProps> = ({
return (
<>
{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
<span {...getFilterBarTestId('create-filter')} onClick={handleClick}>
<div
{...getFilterBarTestId('create-filter')}
onClick={handleClick}
role="button"
tabIndex={0}
>
{children}
</span>
</div>
<FiltersConfigModal
isOpen={isOpen}
onSave={submit}