File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
components/contentSeparator Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1515type Props = {
1616 /** The message displayed in the center label. */
1717 message : string ;
18- /** Optional visual style; default 'info'. */
19- variant ?: 'neutral' | 'info' | 'warning' | 'success' | 'danger' ;
20- /** Extra spacing above (in rem). Default: 2. */
21- marginTopRem ?: number ;
2218 /** Extra spacing below (in rem). Default: 1. */
2319 marginBottomRem ?: number ;
20+ /** Extra spacing above (in rem). Default: 2. */
21+ marginTopRem ?: number ;
22+ /** Optional visual style; default 'info'. */
23+ variant ?: 'neutral' | 'info' | 'warning' | 'success' | 'danger' ;
2424} ;
2525
2626import styles from './style.module.scss' ;
@@ -45,10 +45,11 @@ export function ContentSeparator({
4545 >
4646 < div className = { styles . separator } role = "separator" aria-label = { message } >
4747 < span className = { styles . line } aria-hidden = "true" />
48- < span className = { `${ styles . label } ${ styles [ `label--${ variant } ` ] } ` } > { message } </ span >
48+ < span className = { `${ styles . label } ${ styles [ `label--${ variant } ` ] } ` } >
49+ { message }
50+ </ span >
4951 < span className = { styles . line } aria-hidden = "true" />
5052 </ div >
5153 </ section >
5254 ) ;
5355}
54-
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ import {CliChecksumTable} from './components/cliChecksumTable';
66import { CodeBlock } from './components/codeBlock' ;
77import { CodeTabs } from './components/codeTabs' ;
88import { CommunitySupportedPlatforms } from './components/communitySupportedPlatforms' ;
9- import { ContentSeparator } from './components/contentSeparator' ;
109import { ConfigKey } from './components/configKey' ;
1110import { ConfigValue } from './components/configValue' ;
11+ import { ContentSeparator } from './components/contentSeparator' ;
1212import { CreateGitHubAppForm } from './components/createGitHubAppForm' ;
1313import { DefinitionList } from './components/definitionList' ;
1414import { DevDocsCardGrid } from './components/devDocsCardGrid' ;
You can’t perform that action at this time.
0 commit comments