Skip to content

Commit

Permalink
fixed border box messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
emilybrick committed Jun 28, 2023
1 parent 95017c3 commit 607010f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
9 changes: 5 additions & 4 deletions content/components/border-box.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: BorderBox
description: BorderBox is a Box component with a border.
title: Border box
description: Border box is a box component with a border.
railsIds:
- Primer::Beta::BorderBox
---
Expand All @@ -11,6 +11,7 @@ import {Link as GatsbyLink} from 'gatsby'
export default ComponentLayout

<Note variant="warning">
<Text sx={{display: 'block', fontWeight: 'bold', mb: 2}}>Work in progress</Text>
Interested in contributing? Review the guidelines for <Link as={GatsbyLink} to="/guides/contribute/documentation#documenting-components">writing component documentation</Link> and open a pull request in our <Link as={GatsbyLink} to="https://github.com/primer/design">documentation repository.</Link>
<Text sx={{display: 'block', fontWeight: 'bold', mb: 2}}>Guidelines for this component are in progress</Text>
<Text>Interested in contributing? Review the guidelines for <Link as={GatsbyLink} to="/guides/contribute/documentation#documenting-components">writing component documentation</Link> and open a pull request in our <Link as={GatsbyLink} to="https://github.com/primer/design">documentation repository.</Link></Text>
</Note>

5 changes: 2 additions & 3 deletions content/components/split-page-layout.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ import {Link, Text} from '@primer/react'
import {Link as GatsbyLink} from 'gatsby'
export default ComponentLayout

## Usage
This component provides structure for a split layout, including independent scrolling for the pane and content regions. This is useful for responsive list and detail patterns when an item in the pane updates the page content on selection.

<Note variant="warning">
<Text sx={{display: 'block', fontWeight: 'bold', mb: 2}}>Guidelines for this component are in progress</Text>
<Text>Interested in contributing? Review the guidelines for <Link as={GatsbyLink} to="/guides/contribute/documentation#documenting-components">writing component documentation</Link> and open a pull request in our <Link as={GatsbyLink} to="https://github.com/primer/design">documentation repository.</Link></Text>
</Note>

## Usage
This component provides structure for a split layout, including independent scrolling for the pane and content regions. This is useful for responsive list and detail patterns when an item in the pane updates the page content on selection.
23 changes: 16 additions & 7 deletions content/components/subnav.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,22 @@ import {Link, Text} from '@primer/react'
import {Link as GatsbyLink} from 'gatsby'
export default ComponentLayout

## Usage

Use the SubNav component for navigation on a dashboard-type interface with another set of navigation components above it. This helps distinguish navigation hierarchy.

Make sure to properly label your SubNav with an aria-label to provide context about the type of navigation contained in SubNav.

<Note variant="warning">
<Text sx={{display: 'block', fontWeight: 'bold', mb: 2}}>Guidelines for this component are in progress</Text>
<Text>Interested in contributing? Review the guidelines for <Link as={GatsbyLink} to="/guides/contribute/documentation#documenting-components">writing component documentation</Link> and open a pull request in our <Link as={GatsbyLink} to="https://github.com/primer/design">documentation repository.</Link></Text>
</Note>
</Note>

<br />

<img
src="https://github.com/primer/design/assets/586552/f4f48662-4269-4067-b1fb-b56e24ba8e4d"
role="presentation"
width="960"
alt="Subnav component"
/>

## Usage

Use the subnav component for navigation on a dashboard-type interface with another set of navigation components above it. This helps distinguish navigation hierarchy.

Make sure to properly label your subnav with an aria-label to provide context about the type of navigation contained in subnav.

0 comments on commit 607010f

Please sign in to comment.