catalog: make text of picker clickable

Signed-off-by: Frederic Kayser <frederic@frederic-kayser.de>
This commit is contained in:
Frederic Kayser
2023-03-30 19:27:11 +02:00
parent 7fe57389c6
commit 81bee24c5d
3 changed files with 21 additions and 22 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': patch
---
Fixed bug in catalog filters where you could not click on the text to select a value.
@@ -18,7 +18,6 @@ import { Entity } from '@backstage/catalog-model';
import {
Box,
Checkbox,
FormControlLabel,
makeStyles,
TextField,
Typography,
@@ -112,16 +111,14 @@ export const EntityLifecyclePicker = (props: { initialFilter?: string[] }) => {
setSelectedLifecycles(value)
}
renderOption={(option, { selected }) => (
<FormControlLabel
control={
<Checkbox
icon={icon}
checkedIcon={checkedIcon}
checked={selected}
/>
}
label={option}
/>
<div>
<Checkbox
icon={icon}
checkedIcon={checkedIcon}
checked={selected}
/>
{option}
</div>
)}
size="small"
popupIcon={<ExpandMoreIcon data-testid="lifecycle-picker-expand" />}
@@ -18,7 +18,6 @@ import { EntityErrorFilter, EntityOrphanFilter } from '../../filters';
import {
Box,
Checkbox,
FormControlLabel,
makeStyles,
TextField,
Typography,
@@ -83,16 +82,14 @@ export const EntityProcessingStatusPicker = () => {
errorChange(value.includes('Has Error'));
}}
renderOption={(option, { selected }) => (
<FormControlLabel
control={
<Checkbox
icon={icon}
checkedIcon={checkedIcon}
checked={selected}
/>
}
label={option}
/>
<div>
<Checkbox
icon={icon}
checkedIcon={checkedIcon}
checked={selected}
/>
{option}
</div>
)}
size="small"
popupIcon={