Skip to content

Remove Avatar component from @primer/styled-react#7685

Open
jonrohan wants to merge 2 commits intomainfrom
remove_styled_react/avatar
Open

Remove Avatar component from @primer/styled-react#7685
jonrohan wants to merge 2 commits intomainfrom
remove_styled_react/avatar

Conversation

@jonrohan
Copy link
Member

@jonrohan jonrohan commented Mar 19, 2026

Summary

Remove the Avatar component and its related exports from the @primer/styled-react package. There are no more uses found https://primer-query.githubapp.com/?query=package%3A%22%40primer%2Fstyled-react%22+name%3A%22Avatar%22

Changes

  • Remove Avatar and AvatarProps exports from packages/styled-react/src/index.tsx
  • Delete packages/styled-react/src/components/Avatar.tsx
  • Remove Avatar import and test from packages/styled-react/src/__tests__/primer-react.browser.test.tsx
  • Update exports snapshot in packages/styled-react/src/__tests__/__snapshots__/exports.test.ts.snap

@jonrohan jonrohan requested a review from a team as a code owner March 19, 2026 19:59
@jonrohan jonrohan requested review from TylerJDev and Copilot March 19, 2026 19:59
@changeset-bot
Copy link

changeset-bot bot commented Mar 19, 2026

🦋 Changeset detected

Latest commit: fb0456d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/styled-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the staff Author is a staff member label Mar 19, 2026
This change removes the Avatar component from the @primer/styled-react package.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the deprecated Avatar wrapper component from the @primer/styled-react package, including its public exports and related test/snapshot coverage.

Changes:

  • Removed Avatar and AvatarProps exports from packages/styled-react/src/index.tsx.
  • Deleted the packages/styled-react/src/components/Avatar.tsx wrapper implementation.
  • Removed the Avatar sx support test and updated the exports snapshot accordingly.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

File Description
packages/styled-react/src/index.tsx Drops Avatar / AvatarProps from the public API exports.
packages/styled-react/src/components/Avatar.tsx Deletes the styled-react wrapper around @primer/react’s Avatar.
packages/styled-react/src/tests/primer-react.browser.test.tsx Removes the Avatar supports sx prop test and import.
packages/styled-react/src/tests/snapshots/exports.test.ts.snap Updates the exports snapshot to no longer include Avatar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants