Skip to content

Commit

Permalink
Typography and spacing/layout improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-macpherson committed May 8, 2022
1 parent 2b90388 commit 66232a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion packages/web/components/Modal/ModalBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ const ModalBody: React.FC<Props> = (props) => {
h1 {
margin-bottom: 16px;
${theme.typography.headingXL};
${theme.typography.fontFamilySansSerif};
font-size: 24px;
text-align: center;
font-weight: 600;
}
`}</style>
</div>
Expand Down
7 changes: 4 additions & 3 deletions packages/web/components/Modal/ModalHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ const ModalHeader: React.FC<Props> = ({ onClose, title, showTitle }) => {
<style jsx>{`
.modal-header {
position: relative;
padding: 14px 64px;
padding: ${showTitle ? '14px 64px' : '0'};
border-bottom: ${showTitle ? '1px solid #d4d8db' : 0};
}
@media (min-width: ${modalConstants.modalBreakpoint}) {
.modal-header {
padding: 22px 64px;
padding: ${showTitle ? '14px 64px' : '0'};
}
}
Expand All @@ -49,11 +49,12 @@ const ModalHeader: React.FC<Props> = ({ onClose, title, showTitle }) => {
}
h1 {
${theme.typography.fontFamilySansSerif};
margin: 0 auto;
opacity: ${showTitle ? 1 : 0};
font-size: 20px;
line-height: 28px;
font-weight: 500;
font-weight: 600;
text-align: center;
transition: opacity 150ms ease-in, border 150ms ease-in;
${truncate(247)};
Expand Down

0 comments on commit 66232a3

Please sign in to comment.