Skip to content

Commit

Permalink
fix: removed flex on headline
Browse files Browse the repository at this point in the history
  • Loading branch information
pksorensen committed Oct 4, 2024
1 parent 00a5e03 commit b8b3d63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/ending/Ending.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export const Ending: React.FC<EndingProps> = ({ model, className }) => {
{submitStatus.isSubmitSuccess &&
<>
{state.defaultEndingSlideIcon !== "none" && <Checkmark color={quickformtokens.onSurface} />}
{text &&
<Heading style={{ marginTop: '10px' }}>
{text &&
<Heading isHtml={textIsHtml} style={{ marginTop: '10px' }}>
{text}
</Heading>
}
Expand Down
12 changes: 10 additions & 2 deletions packages/core/src/components/heading/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,23 @@ export const Heading: React.FC<HeadingProps> = ({ children, label, style = {}, i
fontWeight: 'bold',
color: quickformtokens.onSurface,
position: "relative",
display: 'flex',
alignItems: 'center',
// display: 'flex',
// alignItems: 'center',
// CSS-reset from default margin on h1
margin: 0
};


if (typeof (children) === "string") {

if(isHtml)
return (
<div
style={{ ...style, ...headingStyles }}
dangerouslySetInnerHTML={{ __html: children }}
/>
);

return (
<h1
style={{ ...style, ...headingStyles }}
Expand Down

0 comments on commit b8b3d63

Please sign in to comment.