1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00

fix: update 'Select all' label to be more descriptive

This commit is contained in:
Tymoteusz Czech 2025-09-03 13:46:41 +02:00
parent 698c6a0564
commit f0e576f28f
No known key found for this signature in database
GPG Key ID: 133555230D88D75F

View File

@ -37,7 +37,7 @@ export const LabelFilterItem: FC<LabelFilterItemProps> = ({
options={optionsWithSelectAll} options={optionsWithSelectAll}
value={isAllSelected ? options : value} value={isAllSelected ? options : value}
getOptionLabel={(option) => getOptionLabel={(option) =>
option === SELECT_ALL ? 'Select all' : option option === SELECT_ALL ? '(Select all)' : option
} }
onChange={(_, newValues, reason, details) => { onChange={(_, newValues, reason, details) => {
if (details?.option === SELECT_ALL) { if (details?.option === SELECT_ALL) {
@ -55,7 +55,16 @@ export const LabelFilterItem: FC<LabelFilterItemProps> = ({
} }
style={{ marginRight: 8 }} style={{ marginRight: 8 }}
/> />
{option === SELECT_ALL ? 'Select all' : option} {option === SELECT_ALL ? (
<Typography
component='span'
sx={{ color: 'text.secondary' }}
>
Select all
</Typography>
) : (
option
)}
</li> </li>
)} )}
renderTags={(value, getTagProps) => { renderTags={(value, getTagProps) => {