Skip to content

Commit

Permalink
Merge pull request #2806 from ONSdigital/EAR-1888-Wrap-Issue-Piped-An…
Browse files Browse the repository at this point in the history
…swers

EAR-1888 Wrapping issue with piped answers
  • Loading branch information
Paul-Joel authored Nov 2, 2022
2 parents bfad636 + e6bfe5f commit 8ffae5d
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Container = styled.div`
background-color: #e0e0e0;
padding: 0 0.125em;
border-radius: 4px;
white-space: pre;
white-space: pre-wrap;
}
`;

Expand Down
2 changes: 1 addition & 1 deletion eq-author/src/App/page/Preview/CalculatedSummaryPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Container = styled.div`
background-color: #e0e0e0;
padding: 0 0.125em;
border-radius: 4px;
white-space: pre;
white-space: pre-wrap;
}
`;

Expand Down
2 changes: 1 addition & 1 deletion eq-author/src/App/page/Preview/ListCollectorPagePreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Container = styled.div`
background-color: #e0e0e0;
padding: 0 0.125em;
border-radius: 4px;
white-space: pre;
white-space: pre-wrap;
}
`;

Expand Down
2 changes: 1 addition & 1 deletion eq-author/src/App/page/Preview/QuestionPagePreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Container = styled.div`
background-color: #e0e0e0;
padding: 0 0.125em;
border-radius: 4px;
white-space: pre;
white-space: pre-wrap;
}
`;

Expand Down
2 changes: 1 addition & 1 deletion eq-author/src/App/questionConfirmation/Preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Container = styled.div`
span[data-piped] {
background-color: #5f7682;
border-radius: 4px;
white-space: pre;
white-space: pre-wrap;
color: white;
padding: 0.1em 0.4em 0.2em;
}
Expand Down
2 changes: 1 addition & 1 deletion eq-author/src/App/section/Preview/SectionIntroPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Wrapper = styled.div`
background-color: #e0e0e0;
padding: 0 0.125em;
border-radius: 4px;
white-space: pre;
white-space: pre-wrap;
}
`;

Expand Down
4 changes: 2 additions & 2 deletions eq-author/src/components-themed/panels/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const successPanel = css`
const Flex = styled.div`
display: flex;
justify-content: start;
align-items: center;
align-items: start;
font-weight: ${({ bold }) => bold && "bold"};
font-size: ${({ fontSize }) => fontSize};
`;
Expand Down Expand Up @@ -180,7 +180,7 @@ const Panel = ({
{variant === "warning" && (
<Flex bold fontSize="18px">
<WarningIcon>!</WarningIcon>
{children}
<div>{children}</div>
</Flex>
)}
<Container variant={variant}>
Expand Down
2 changes: 1 addition & 1 deletion eq-author/src/components/Forms/Tooltip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const StyledTooltip = styled(ReactTooltip)`
line-height: 1 !important;
padding: 0.4rem 0.6rem !important;
border-radius: ${radius} !important;
white-space: pre;
white-space: pre-wrap;
`;

class Tooltip extends React.Component {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ exports[`components/RichTextEditor should allow multiline input 1`] = `
"rules": Array [
"background-color:#e0e0e0;padding:0 0.125em;border-radius:",
"4px",
";white-space:pre;",
";white-space:pre-wrap;",
],
},
"displayName": "PipedValue__PipedValueDecorator",
Expand Down Expand Up @@ -172,7 +172,7 @@ exports[`components/RichTextEditor should allow multiline input 1`] = `
"rules": Array [
"background-color:#e0e0e0;padding:0 0.125em;border-radius:",
"4px",
";white-space:pre;",
";white-space:pre-wrap;",
],
},
"displayName": "PipedValue__PipedValueDecorator",
Expand Down Expand Up @@ -251,7 +251,7 @@ exports[`components/RichTextEditor should allow multiline input 1`] = `
"rules": Array [
"background-color:#e0e0e0;padding:0 0.125em;border-radius:",
"4px",
";white-space:pre;",
";white-space:pre-wrap;",
],
},
"displayName": "PipedValue__PipedValueDecorator",
Expand Down Expand Up @@ -416,7 +416,7 @@ exports[`components/RichTextEditor should render 1`] = `
"rules": Array [
"background-color:#e0e0e0;padding:0 0.125em;border-radius:",
"4px",
";white-space:pre;",
";white-space:pre-wrap;",
],
},
"displayName": "PipedValue__PipedValueDecorator",
Expand Down Expand Up @@ -501,7 +501,7 @@ exports[`components/RichTextEditor should render 1`] = `
"rules": Array [
"background-color:#e0e0e0;padding:0 0.125em;border-radius:",
"4px",
";white-space:pre;",
";white-space:pre-wrap;",
],
},
"displayName": "PipedValue__PipedValueDecorator",
Expand Down Expand Up @@ -580,7 +580,7 @@ exports[`components/RichTextEditor should render 1`] = `
"rules": Array [
"background-color:#e0e0e0;padding:0 0.125em;border-radius:",
"4px",
";white-space:pre;",
";white-space:pre-wrap;",
],
},
"displayName": "PipedValue__PipedValueDecorator",
Expand Down Expand Up @@ -796,7 +796,7 @@ exports[`components/RichTextEditor should render existing content 1`] = `
"rules": Array [
"background-color:#e0e0e0;padding:0 0.125em;border-radius:",
"4px",
";white-space:pre;",
";white-space:pre-wrap;",
],
},
"displayName": "PipedValue__PipedValueDecorator",
Expand Down Expand Up @@ -889,7 +889,7 @@ exports[`components/RichTextEditor should render existing content 1`] = `
"rules": Array [
"background-color:#e0e0e0;padding:0 0.125em;border-radius:",
"4px",
";white-space:pre;",
";white-space:pre-wrap;",
],
},
"displayName": "PipedValue__PipedValueDecorator",
Expand Down Expand Up @@ -1017,7 +1017,7 @@ exports[`components/RichTextEditor should render existing content 1`] = `
"rules": Array [
"background-color:#e0e0e0;padding:0 0.125em;border-radius:",
"4px",
";white-space:pre;",
";white-space:pre-wrap;",
],
},
"displayName": "PipedValue__PipedValueDecorator",
Expand Down Expand Up @@ -1184,7 +1184,7 @@ exports[`components/RichTextEditor should show as disabled and readonly when dis
"rules": Array [
"background-color:#e0e0e0;padding:0 0.125em;border-radius:",
"4px",
";white-space:pre;",
";white-space:pre-wrap;",
],
},
"displayName": "PipedValue__PipedValueDecorator",
Expand Down Expand Up @@ -1269,7 +1269,7 @@ exports[`components/RichTextEditor should show as disabled and readonly when dis
"rules": Array [
"background-color:#e0e0e0;padding:0 0.125em;border-radius:",
"4px",
";white-space:pre;",
";white-space:pre-wrap;",
],
},
"displayName": "PipedValue__PipedValueDecorator",
Expand Down Expand Up @@ -1348,7 +1348,7 @@ exports[`components/RichTextEditor should show as disabled and readonly when dis
"rules": Array [
"background-color:#e0e0e0;padding:0 0.125em;border-radius:",
"4px",
";white-space:pre;",
";white-space:pre-wrap;",
],
},
"displayName": "PipedValue__PipedValueDecorator",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const PipedValueDecorator = styled.span`
background-color: #e0e0e0;
padding: 0 0.125em;
border-radius: ${radius};
white-space: pre;
white-space: pre-wrap;
`;

const PipedValueSerialized = ({ data: { id, text, pipingType, type } }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`PipedValue decorator should render piped value entities 1`] = `
"rules": Array [
"background-color:#e0e0e0;padding:0 0.125em;border-radius:",
"4px",
";white-space:pre;",
";white-space:pre-wrap;",
],
},
"displayName": "PipedValue__PipedValueDecorator",
Expand Down

0 comments on commit 8ffae5d

Please sign in to comment.