Skip to content

Commit

Permalink
fix(TotalLayout): Title padding
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-fx committed Dec 21, 2023
1 parent 57b8098 commit c0fb0d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Text } from '../../../typography';
import { Text, Title } from '../../../typography';
import { Stack } from '../../Stack';
import { Box } from '../../Box';
import {
Expand All @@ -17,9 +17,9 @@ const TotalLayoutStepContainer = ({ stepName, children, Footer, clean }) => {
return (
<Stack className={classes.stepContainer} direction="column">
{stepName && (
<Text className={classes.stepName} as="h1" color="primary">
<Title className={classes.stepName} order={2} noFlex>
{stepName}
</Text>
</Title>
)}
<Stack className={classes.formContainer} fullWidth direction="column">
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createStyles } from '@mantine/styles';
const TotalLayoutStepContainerStyles = createStyles((theme, { hasFooter, clean }) => ({
root: {},
stepContainer: {
padding: '24px 0 0 0 ',
padding: '30px 0 0 0 ',
width: 928,
height: '100%',
},
Expand All @@ -13,10 +13,7 @@ const TotalLayoutStepContainerStyles = createStyles((theme, { hasFooter, clean }
paddingBottom: hasFooter ? 70 : 24,
},
stepName: {
fontSize: 23,
fontWeight: 500,
lineHeight: 40,
marginBottom: 8,
marginBottom: 12,
},
}));

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/typography/Title/Title.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getFontExpressive } from '../../theme.mixins';
export const TitleStyles = createStyles((theme, { order, transform, color, highlighted }) => {
const globalContent = theme.other?.global?.content;
const fontStyles = [];

if (globalContent?.typo) {
fontStyles.push(
globalContent.typo.heading.xlg,
Expand Down

0 comments on commit c0fb0d9

Please sign in to comment.