File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Expand file tree Collapse file tree 3 files changed +17
-6
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__data-table-cell-wrap {
348
+ max-width : max-content ;
349
+ }
350
+
351
+ @media (--pgn-size-breakpoint-max-width-md ) {
352
+ overflow : hidden ;
353
+ overflow-x : scroll ;
354
+ }
355
+ }
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 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