File tree Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 342
342
grid-template-columns : repeat (4 , 1fr ); // 4 columns for large+ screens
343
343
}
344
344
}
345
+
346
+ .pgn-doc__code-display-block ,
347
+ .pgn-doc__code-headings-block {
348
+ .pgn__data-table-cell-wrap {
349
+ max-width : max-content ;
350
+ }
351
+
352
+ @media (--pgn-size-breakpoint-max-width-md ) {
353
+ overflow : hidden ;
354
+ overflow-x : scroll ;
355
+
356
+ .pgn__data-table-layout-wrapper {
357
+ overflow-x : initial ;
358
+ }
359
+ }
360
+ }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export default function Display() {
10
10
return (
11
11
< >
12
12
< h2 className = "mb-2" > Display</ h2 >
13
- < div className = "mb-4" >
13
+ < div className = "mb-4 pgn-doc__code-display-block " >
14
14
< DataTable
15
15
itemCount = { displaySizes . length }
16
16
data = { displaySizes . map ( ( size ) => ( { text : `Display ${ size } ` , className : `display-${ size } ` } ) ) }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default function Headings() {
18
18
return (
19
19
< >
20
20
< h2 className = "mb-2" > Headings</ h2 >
21
- < div className = "mb-4" >
21
+ < div className = "mb-4 pgn-doc__code-headings-block " >
22
22
< DataTable
23
23
itemCount = { tableData . length }
24
24
data = { tableData }
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
// @ts -ignore
3
- import { DataTable } from '~paragon-react' ;
3
+ import { DataTable , Alert } from '~paragon-react' ;
4
+ import { Info } from '~paragon-icons' ;
4
5
import { TextCell } from '../TableCells' ;
5
6
6
7
const linksClassesAndDescriptions = [
7
- {
8
- example : < a href = "/#" > Standalone Link</ a > ,
9
- description : < span > The default style for < code > a</ code > tags that don`t appear in a < code > p</ code > tag.</ span > ,
10
- } ,
11
8
{
12
9
example : < span > An < a className = "inline-link" href = "/foundations/typography/" > inline link</ a > in a sentence.</ span > ,
13
10
description : < span > For links inside a < code > p</ code > or with the < code > .inline-link</ code > class name.</ span > ,
@@ -34,6 +31,9 @@ export default function Links() {
34
31
return (
35
32
< >
36
33
< h2 className = "mb-2" > Links</ h2 >
34
+ < Alert variant = "info" icon = { Info } >
35
+ < a href = "/#" > Standalone Link</ a > - the default style for < code > a</ code > tag that appear outside of < code > p</ code > tag.
36
+ </ Alert >
37
37
< div className = "mb-4" >
38
38
< DataTable
39
39
itemCount = { 4 }
You can’t perform that action at this time.
0 commit comments