Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/great-pots-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/styled-react": patch
---

Remove Avatar component from @primer/styled-react
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ exports[`@primer/styled-react exports 1`] = `
[
"ActionList",
"ActionMenu",
"Avatar",
"BaseStyles",
"Box",
"Breadcrumb",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {describe, expect, test} from 'vitest'
import {
ActionList,
ActionMenu,
Avatar,
Box,
Breadcrumbs,
Button,
Expand Down Expand Up @@ -59,11 +58,6 @@ describe('@primer/react', () => {
expect(window.getComputedStyle(screen.getByTestId('component')).backgroundColor).toBe('rgb(255, 0, 0)')
})

test('Avatar supports `sx` prop', () => {
render(<Avatar data-testid="component" sx={{background: 'red'}} src="" />)
expect(window.getComputedStyle(screen.getByTestId('component')).backgroundColor).toBe('rgb(255, 0, 0)')
})

test('Box supports `sx` prop', () => {
render(<Box as="div" data-testid="component" sx={{background: 'red'}} />)
expect(window.getComputedStyle(screen.getByTestId('component')).backgroundColor).toBe('rgb(255, 0, 0)')
Expand Down
12 changes: 0 additions & 12 deletions packages/styled-react/src/components/Avatar.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions packages/styled-react/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,20 +135,6 @@ export {
ActionMenu,
} from './components/ActionMenu'

export {
/**
* @deprecated Usage of the `sx` prop with this component is no longer
* supported. Use the component from `@primer/react` with CSS Modules instead.
*/
Avatar,

/**
* @deprecated Usage of the `sx` prop with this component is no longer
* supported. Use the component from `@primer/react` with CSS Modules instead.
*/
type AvatarProps,
} from './components/Avatar'

export {
/**
* @deprecated Usage of the `sx` prop with this component is no longer
Expand Down
Loading