Skip to content

Commit

Permalink
fix(textbox): change fieldHelp sizing to match input width
Browse files Browse the repository at this point in the history
Fixes #4543
  • Loading branch information
grabkowski committed Nov 19, 2021
1 parent fa59add commit 6c517c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__internal__/field-help/field-help.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ describe("FieldHelp", () => {
assertStyleMatch(
{
display: "block",
flex: "1",
marginTop: "8px",
whiteSpace: "pre-wrap",
width: "100%",
},
wrapper
);
Expand Down
2 changes: 1 addition & 1 deletion src/__internal__/field-help/field-help.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import BaseTheme from "../../style/themes/base";

const FieldHelpStyle = styled.span`
display: block;
flex: 1;
margin-top: 8px;
white-space: pre-wrap;
width: 100%;
${({ labelInline, labelWidth }) =>
labelInline &&
Expand Down

0 comments on commit 6c517c9

Please sign in to comment.