Skip to content

Commit

Permalink
Various and sundry small fixes (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
camertron committed Jan 8, 2024
1 parent ea85173 commit c60c4a0
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content/components/autocomplete.mdx
Expand Up @@ -115,4 +115,4 @@ Custom filtering logic can be applied if the default filtering behavior does not

### Known accessibility issues (GitHub staff only)

<AccessibilityLink label="AutoComplete"/>
<AccessibilityLink label="AutoComplete"/>
4 changes: 2 additions & 2 deletions content/components/circle-badge.mdx
@@ -1,6 +1,6 @@
---
title: Circle badge
description: Circle badge visually connects logos of third-party services like in the marketplace.
description: Circle badge visually connects logos of third-party services, eg. in the marketplace.
componentId: circle_badge
reactId: circle_badge
---
Expand All @@ -26,7 +26,7 @@ import {AccessibilityLink} from '~/src/components/accessibility-link'

## Usage

Use circle badge to visually connect logos of third party services.
Use circle badge to visually connect logos of third party services.

## Accessibility

Expand Down
25 changes: 25 additions & 0 deletions content/components/circle-octicon.mdx
@@ -0,0 +1,25 @@
---
title: Circle octicon
description: Use circle octicon to render any Octicon with a circle background. CircleOcticons are most commonly used to represent the status of a pull request in the comment timeline.
componentId: circle_octicon
reactId: circle_octicon
---

import ComponentLayout from '~/src/layouts/component-layout'
import {Link, Text} from '@primer/react'
import {Link as GatsbyLink} from 'gatsby'
export default ComponentLayout
import {AccessibilityLink} from '~/src/components/accessibility-link'

<Note variant="warning">
<Text sx={{display: 'block', fontWeight: 'bold', mb: 2}}>Guidelines for this component are 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>
</Note>

<br />

## Accessibility

### Known accessibility issues (GitHub staff only)

<AccessibilityLink label="CircleBadge"/>
1 change: 1 addition & 0 deletions content/components/icon.mdx
@@ -1,5 +1,6 @@
---
title: Icon
reactId: octicon
railsIds:
- Primer::Beta::Octicon
figmaId: icon
Expand Down
3 changes: 3 additions & 0 deletions content/components/page-layout.mdx
Expand Up @@ -3,6 +3,9 @@ title: Page layout
description: Page layout defines the header, main, pane, and footer areas of a page.
componentId: page_layout
reactId: page_layout
railsIds:
- Primer::Alpha::Layout
- Primer::LayoutComponent
---

import ComponentLayout from '~/src/layouts/component-layout'
Expand Down
4 changes: 4 additions & 0 deletions content/components/split-page-layout.mdx
Expand Up @@ -16,6 +16,10 @@ import {AccessibilityLink} from '~/src/components/accessibility-link'
<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 variant="info">
If you need a more flexible layout component, consider using <Link as={GatsbyLink} to="/components/page-layout">PageLayout</Link> instead.
</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.

Expand Down
2 changes: 2 additions & 0 deletions src/@primer/gatsby-theme-doctocat/nav.yml
Expand Up @@ -171,6 +171,8 @@
url: /components/checkbox-group
- title: Circle badge
url: /components/circle-badge
- title: Circle octicon
url: /components/circle-octicon
- title: Clipboard copy
url: /components/clipboard-copy
- title: Close button
Expand Down
1 change: 1 addition & 0 deletions src/layouts/rails-component-layout.tsx
Expand Up @@ -322,6 +322,7 @@ export default function RailsComponentLayout({data}) {
includeReact={reactId}
includeRails={railsIds}
includeFigma={figmaId}
includeCSS={cssId}
current="rails"
/>
</Box>
Expand Down

0 comments on commit c60c4a0

Please sign in to comment.