[v9.4.x] Search: Fix alignment of checkbox in folder view (#62708)

This commit is contained in:
Grot (@grafanabot)
2023-02-01 16:44:11 +00:00
committed by GitHub
parent 795c86b045
commit 42b9c898bf
2 changed files with 2 additions and 5 deletions
@@ -59,7 +59,7 @@ export const getCheckboxStyles = stylesFactory((theme: GrafanaTheme2) => {
return {
wrapper: css`
display: flex;
display: inline-flex;
gap: ${theme.spacing(labelPadding)};
align-items: baseline;
position: relative;
@@ -173,7 +173,7 @@ export const FolderSection = ({
label={
<>
{selectionToggle && selection && (
<div className={styles.checkbox} onClick={onToggleFolder}>
<div onClick={onToggleFolder}>
<Checkbox value={selection(section.kind, section.uid)} aria-label="Select folder" />
</div>
)}
@@ -229,9 +229,6 @@ const getSectionHeaderStyles = (theme: GrafanaTheme2, selected = false, editable
sectionItems: css`
margin: 0 24px 0 32px;
`,
checkbox: css`
padding: 0 ${sm} 0 0;
`,
icon: css`
padding: 0 ${sm} 0 ${editable ? 0 : sm};
`,