Skip to content
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

chore(Link): Remove the CSS modules feature flag from the Link component #5148

Merged
merged 6 commits into from
Oct 30, 2024

Conversation

jonrohan
Copy link
Member

Changelog

Changed

Remove the CSS modules feature flag from the Link component

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Integration tests in dotcom

Merge checklist

Copy link

changeset-bot bot commented Oct 17, 2024

🦋 Changeset detected

Latest commit: 8dfeec6

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 Minor

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 Oct 17, 2024
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!

@github-actions github-actions bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Oct 17, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview-5148 October 17, 2024 23:44 Inactive
Copy link
Contributor

github-actions bot commented Oct 17, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 97.05 KB (-0.08% 🔽)
packages/react/dist/browser.umd.js 97.25 KB (-0.26% 🔽)

@github-actions github-actions bot temporarily deployed to storybook-preview-5148 October 24, 2024 02:47 Inactive
@jonrohan jonrohan marked this pull request as ready for review October 24, 2024 02:52
@jonrohan jonrohan requested a review from a team as a code owner October 24, 2024 02:52
data-inline={inline}
underline={underline}
data-underline={underline}
{...props}
// @ts-ignore shh
ref={innerRef}
Copy link
Member Author

Choose a reason for hiding this comment

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

I probably don't need this ref anymore? @joshblack

Copy link
Member

Choose a reason for hiding this comment

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

I think it's used in the effect for checking the ref type IIRC, let me know if I'm missing something 👀

import Box from '../Box'
import type {ComponentProps} from '../utils/types'
import type {ForwardRefComponent as PolymorphicForwardRefComponent} from '../utils/polymorphic'

type StyledLinkProps = {
/** @deprecated use CSS modules to style hover color */
hoverColor?: string
Copy link
Member

Choose a reason for hiding this comment

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

If you haven't already, could you add a note to https://github.com/github/primer/issues/3541 for removing this from Link? 🙏

data-inline={inline}
underline={underline}
data-underline={underline}
{...props}
// @ts-ignore shh
ref={innerRef}
Copy link
Member

Choose a reason for hiding this comment

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

I think it's used in the effect for checking the ref type IIRC, let me know if I'm missing something 👀


&:hover {
text-decoration: ${props => (props.muted ? 'none' : 'underline')};
${props => (props.hoverColor ? hoverColor : props.muted ? `color: ${get('colors.accent.fg')(props)}` : '')};
Copy link
Member

Choose a reason for hiding this comment

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

Are we passing along the hoverColor prop now that it's been decorated? I wasn't sure if we were still supporting it or not and wanted to double check

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not doing anything anymore

@jonrohan jonrohan added this pull request to the merge queue Oct 30, 2024
Merged via the queue into main with commit 002be35 Oct 30, 2024
43 checks passed
@jonrohan jonrohan deleted the remove_link_css_module_feature_flag branch October 30, 2024 20:48
@primer primer bot mentioned this pull request Oct 30, 2024
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