Skip to content

fix(LinkItem): pass through variant prop when flag is disabled #5958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 23, 2025

Conversation

joshblack
Copy link
Member

Closes https://github.com/github/primer/issues/5117

Changelog

New

Changed

  • Update ActionList.LinkItem to pass through the variant prop in the branch where the CSS Modules flag is disabled

Removed

Rollout strategy

  • Patch release

@Copilot Copilot AI review requested due to automatic review settings April 23, 2025 14:58
@joshblack joshblack requested a review from a team as a code owner April 23, 2025 14:58
@joshblack joshblack requested a review from francinelucca April 23, 2025 14:58
Copy link

changeset-bot bot commented Apr 23, 2025

🦋 Changeset detected

Latest commit: a117c8e

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

This PR includes changesets to release 1 package
Name Type
@primer/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

Copy link
Contributor

@Copilot 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 updates the ActionList.LinkItem component to pass through the variant prop when the CSS Modules flag is disabled.

  • Passes the variant prop to the underlying component to ensure the correct styling behavior based on the flag setting.

@github-actions github-actions bot added staff Author is a staff member integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Apr 23, 2025
Copy link
Contributor

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

Copy link
Contributor

github-actions bot commented Apr 23, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 102.23 KB (-0.05% 🔽)
packages/react/dist/browser.umd.js 102.57 KB (+0.03% 🔺)

@joshblack joshblack added this pull request to the merge queue Apr 23, 2025
Merged via the queue into main with commit 9110f71 Apr 23, 2025
45 checks passed
@joshblack joshblack deleted the fix/passthrough-variant-in-no-flag-case branch April 23, 2025 16:44
@primer primer bot mentioned this pull request Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants