diff --git a/www/src/components/_doc-elements.scss b/www/src/components/_doc-elements.scss index decd92b57e..fc64095e67 100644 --- a/www/src/components/_doc-elements.scss +++ b/www/src/components/_doc-elements.scss @@ -342,3 +342,14 @@ grid-template-columns: repeat(4, 1fr); // 4 columns for large+ screens } } + +.pgn-doc__code-display-block { + .pgn__data-table-cell-wrap { + max-width: max-content; + } + + @media (--pgn-size-breakpoint-max-width-md) { + overflow: hidden; + overflow-x: scroll; + } +} diff --git a/www/src/components/typography-page/Display.tsx b/www/src/components/typography-page/Display.tsx index 5762a98ab6..26c7379637 100644 --- a/www/src/components/typography-page/Display.tsx +++ b/www/src/components/typography-page/Display.tsx @@ -10,7 +10,7 @@ export default function Display() { return ( <>

Display

-
+
({ text: `Display ${size}`, className: `display-${size}` }))} diff --git a/www/src/components/typography-page/Links.tsx b/www/src/components/typography-page/Links.tsx index 3adc083b64..2af8c0ea42 100644 --- a/www/src/components/typography-page/Links.tsx +++ b/www/src/components/typography-page/Links.tsx @@ -1,13 +1,10 @@ import React from 'react'; // @ts-ignore -import { DataTable } from '~paragon-react'; +import { DataTable, Alert } from '~paragon-react'; +import { Info } from '~paragon-icons'; import { TextCell } from '../TableCells'; const linksClassesAndDescriptions = [ - { - example: Standalone Link, - description: The default style for 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 ( <>

Links

+ + Standalone Link - the default style for a tag that appear outside of p tag. +