fix(select): prevent bulk action buttons from being cut off in filters (#37453)

This commit is contained in:
Jean Massucatto
2026-01-28 11:16:14 -03:00
committed by GitHub
parent ec2509a8b4
commit abf90de0ca
3 changed files with 4 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ const getSelect = () =>
screen.getByRole('combobox', { name: new RegExp(ARIA_LABEL, 'i') });
const selectAllButtonText = (length: number) => `Select all (${length})`;
const deselectAllButtonText = (length: number) => `Deselect all (${length})`;
const deselectAllButtonText = (length: number) => `Clear (${length})`;
const findSelectOption = (text: string) =>
waitFor(() =>

View File

@@ -523,7 +523,7 @@ const Select = forwardRef(
handleDeselectAll();
}}
>
{`${t('Deselect all')} (${bulkSelectCounts.deselectable})`}
{`${t('Clear')} (${bulkSelectCounts.deselectable})`}
</Button>
</StyledBulkActionsContainer>
),
@@ -777,6 +777,7 @@ const Select = forwardRef(
options={visibleOptions}
optionRender={option => <Space>{option.label || option.value}</Space>}
oneLine={oneLine}
popupMatchSelectWidth={selectAllEnabled ? 168 : true}
css={props.css}
dropdownAlign={DROPDOWN_ALIGN_BOTTOM}
{...props}

View File

@@ -142,5 +142,6 @@ export const StyledBulkActionsContainer = styled(Flex)`
${({ theme }) => `
padding: ${theme.sizeUnit}px;
border-top: 1px solid ${theme.colorSplit};
gap: ${theme.sizeUnit * 2}px;
`}
`;