Skip to content

Commit f4ded58

Browse files
authored
CircleOcticon: Deprecate component (#6542)
1 parent bdac258 commit f4ded58

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

.changeset/cold-teams-buy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': minor
3+
---
4+
5+
CircleOcticon: Deprecate component

e2e/components/CircleOcticon.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import {themes} from '../test-helpers/themes'
55
const stories = [
66
{
77
title: 'Default',
8-
id: 'components-circleocticon--default',
8+
id: 'deprecated-components-circleocticon--default',
99
},
1010
{
1111
title: 'Playground',
12-
id: 'components-circleocticon--playground',
12+
id: 'deprecated-components-circleocticon--playground',
1313
},
1414
] as const
1515

packages/react/src/CircleOcticon/CircleOcticon.docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "circle_octicon",
33
"name": "CircleOcticon",
4-
"status": "alpha",
4+
"status": "deprecated",
55
"a11yReviewed": "2025-01-08",
66
"stories": [],
77
"importPath": "@primer/react",

packages/react/src/CircleOcticon/CircleOcticon.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {CheckIcon} from '@primer/octicons-react'
66
import * as Icons from '@primer/octicons-react'
77

88
const meta: Meta<typeof CircleOcticon> = {
9-
title: 'Components/CircleOcticon',
9+
title: 'Deprecated/Components/CircleOcticon',
1010
component: CircleOcticon,
1111
}
1212
export default meta

packages/react/src/CircleOcticon/CircleOcticon.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export type CircleOcticonProps = {
99
icon: React.ComponentType<React.PropsWithChildren<{size?: IconProps['size']}>>
1010
} & BoxProps
1111

12+
/**
13+
* @deprecated This component is deprecated. Replace component with specific icon imports from `@primer/octicons-react` and customized styling.)
14+
*/
1215
function CircleOcticon(props: CircleOcticonProps) {
1316
const {size = 32, as, icon: IconComponent, bg, 'aria-label': ariaLabel, ...rest} = props
1417
return (

0 commit comments

Comments
 (0)