Skip to content

Commit

Permalink
fix(InputSelect): make root label block
Browse files Browse the repository at this point in the history
fixes bug in FF & Safari where the child widths collapse as <label> is usually inline.
  • Loading branch information
Conor Haining authored and mvidalgarcia committed Oct 31, 2023
1 parent e305def commit 9326e59
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Field } from "../InputField";
export const StyledLabel = styled.label<{ spaceAfter?: Props["spaceAfter"] }>`
position: relative;
margin-bottom: ${getSpacingToken};
display: block;
`;

StyledLabel.defaultProps = {
Expand Down

0 comments on commit 9326e59

Please sign in to comment.