diff --git a/styles/css/core/variables.css b/styles/css/core/variables.css index 10e2eec4f5..60832e4bf2 100644 --- a/styles/css/core/variables.css +++ b/styles/css/core/variables.css @@ -143,8 +143,8 @@ --pgn-typography-font-size-h1-mobile: 2.25rem; /* Mobile font size of heading level 1. */ --pgn-typography-font-size-h1-base: 2.5rem; /* Base font size of heading level 1. */ --pgn-typography-font-size-micro: 0.688rem; /* Micro utils text font size. */ - --pgn-typography-font-size-xs: 0.75rem; /* X-small font size. */ - --pgn-typography-font-size-sm: 0.875rem; /* Small font size. */ + --pgn-typography-font-size-xs: 75%; /* X-small font size. */ + --pgn-typography-font-size-sm: 87.5%; /* Small font size. */ --pgn-typography-font-size-lg: calc(var(--pgn-typography-font-size-base) * 1.25); /* Lead text font size. */ --pgn-typography-font-size-base: 1.125rem; /* Base font size. */ --pgn-typography-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; /* Monospace font family. */ diff --git a/tokens/src/core/global/typography.json b/tokens/src/core/global/typography.json index 4922f40999..0dec9157f8 100644 --- a/tokens/src/core/global/typography.json +++ b/tokens/src/core/global/typography.json @@ -41,12 +41,12 @@ }, "sm": { "source": "$small-font-size", - "$value": ".875rem", + "$value": "87.5%", "$description": "Small font size." }, "xs": { "source": "$x-small-font-size", - "$value": ".75rem", + "$value": "75%", "$description": "X-small font size." }, "micro": { diff --git a/www/src/components/Menu.scss b/www/src/components/Menu.scss index eca94c04ba..e444c50f47 100644 --- a/www/src/components/Menu.scss +++ b/www/src/components/Menu.scss @@ -40,7 +40,7 @@ margin-bottom: var(--pgn-spacing-spacer-base); .pgn_collapsible { - font-size: var(--pgn-typography-font-size-xs); + font-size: var(--pgn-typography-font-size-sm); line-height: var(--pgn-typography-headings-line-height); font-weight: var(--pgn-typography-font-weight-normal); color: var(--pgn-color-gray-700); @@ -86,7 +86,6 @@ } .collapsible-basic .collapsible-trigger { - font-size: var(--pgn-typography-font-size-sm); text-decoration: none; justify-content: start; flex-direction: row-reverse; diff --git a/www/src/components/_doc-elements.scss b/www/src/components/_doc-elements.scss index decd92b57e..f020023563 100644 --- a/www/src/components/_doc-elements.scss +++ b/www/src/components/_doc-elements.scss @@ -342,3 +342,37 @@ grid-template-columns: repeat(4, 1fr); // 4 columns for large+ screens } } + +.pgn-doc__code-display-block, +.pgn-doc__code-headings-block { + .pgn__data-table-cell-wrap { + max-width: max-content; + } + + @media (--pgn-size-breakpoint-max-width-md) { + overflow: hidden; + overflow-x: scroll; + + .pgn__data-table-layout-wrapper { + overflow-x: initial; + } + } + + .heading-label { + font-size: var(--pgn-typography-font-size-base); + line-height: var(--pgn-typography-line-height-base); + } +} + +.pgn-doc__code-body-block { + .lead, + .font-size-normal, + .small, + .x-small { + line-height: var(--pgn-typography-line-height-base); + } + + .pgn__data-table-wrapper { + font-size: inherit; + } +} diff --git a/www/src/components/typography-page/Body.tsx b/www/src/components/typography-page/Body.tsx index a0c34fc52a..c18c626653 100644 --- a/www/src/components/typography-page/Body.tsx +++ b/www/src/components/typography-page/Body.tsx @@ -15,7 +15,7 @@ export default function Body() { return ( <>
a
tags that don`t appear in a p
tag.,
- },
{
example: An inline link in a sentence.,
description: For links inside a p
or with the .inline-link
class name.,
@@ -34,6 +31,9 @@ export default function Links() {
return (
<>
a
tag that appear outside of p
tag.
+