Skip to content

Commit

Permalink
fix(filter options): full size list item targets (#31449)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas authored Dec 16, 2024
1 parent 04077ce commit 48510d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
`;

Expand All @@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 48510d2

Please sign in to comment.