Skip to content

Commit

Permalink
Replace typography API instances in dev kitchen
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmockett committed Aug 9, 2024
1 parent c8f1ac5 commit 72ad2e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { css } from '@emotion/react';
import type { SerializedStyles } from '@emotion/react';
import {
focusHalo,
fontWeights,
height,
remHeight,
remSpace,
Expand All @@ -23,19 +22,19 @@ export const fileName = (
const defaultUpload = css`
padding: ${remSpace[3]};
border-radius: ${height.ctaMedium}px;
font-weight: ${fontWeights.bold};
font-weight: 700;
`;
const smallUpload = css`
padding: ${remSpace[3]};
border-radius: ${height.ctaSmall}px;
font-weight: ${fontWeights.bold};
font-weight: 700;
`;

const xsmallUpload = css`
padding: 0 ${space[3]}px;
padding: ${remSpace[3]};
border-radius: ${height.ctaXsmall}px;
font-weight: ${fontWeights.bold};
font-weight: 700;
`;

export const warningText = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import {
neutral,
space,
success,
textSans,
textSans15,
textSans17,
textSansBold15,
textSansBold17,
} from '@guardian/source/foundations';
import type {
LabelPosition,
Expand Down Expand Up @@ -140,7 +143,10 @@ export const labelStyles = (
fontWeight: ToggleSwitchFontWeight,
format?: ArticleFormat,
): SerializedStyles => css`
${textSans[fontSize]({ fontWeight })};
${fontSize === 'small' &&
(fontWeight === 'regular' ? textSans15 : textSansBold15)};
${fontSize === 'medium' &&
(fontWeight === 'regular' ? textSans17 : textSansBold17)};
color: ${format ? neutral[100] : neutral[7]};
display: inline-flex;
justify-content: space-between;
Expand Down

0 comments on commit 72ad2e4

Please sign in to comment.