Skip to content

Commit

Permalink
Merge pull request #25 from sillsdev/fix_label_textwrap
Browse files Browse the repository at this point in the history
fix: allow labels to wrap (#25)
  • Loading branch information
andrew-polk authored Oct 18, 2024
2 parents ac54067 + 95f4a32 commit 26fc324
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ export const FormFieldLabel: React.FunctionComponent<
} & InputLabelProps
> = ({ label, required, ...inputLabelProps }) => {
return (
<InputLabel {...inputLabelProps}>
<InputLabel
{...inputLabelProps}
css={css`
// Otherwise it is nowrap and the labels get in the way of horizontal shrinking on narrow screens
text-wrap: wrap;
`}
>
<Typography
css={css`
color: ${COLORS.greys[3]};
Expand Down

0 comments on commit 26fc324

Please sign in to comment.