Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ensure BaseControl label line-height in ToolsPanel
This was in response to issue raised about misalignment of labels only in the Storybook.
  • Loading branch information
aaronrobertshaw committed Dec 7, 2021
commit 716a3dcb1c344bc275e84cd404f714388e068a0e
8 changes: 7 additions & 1 deletion packages/components/src/tools-panel/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { css } from '@emotion/react';
import {
StyledField as BaseControlField,
StyledHelp as BaseControlHelp,
StyledLabel as BaseControlLabel,
Wrapper as BaseControlWrapper,
} from '../base-control/styles/base-control-styles';
import { LabelWrapper } from '../input-control/styles/input-control-styles';
Expand Down Expand Up @@ -121,7 +122,8 @@ export const ToolsPanelItem = css`
}

/**
* Standardize InputControl labels with other labels inside ToolsPanel.
* Standardize InputControl and BaseControl labels with other labels when
* inside ToolsPanel.
*
* This is a temporary fix until the different control components have their
* labels normalized.
Expand All @@ -133,6 +135,10 @@ export const ToolsPanelItem = css`
line-height: 1.4em;
}
}

${ BaseControlLabel } {
line-height: 1.4em;
}
`;

export const ToolsPanelItemPlaceholder = css`
Expand Down