feat(VisuallyHidden): Convert VisuallyHidden to CSS module behind feature flag#5193
feat(VisuallyHidden): Convert VisuallyHidden to CSS module behind feature flag#5193randall-krauskopf merged 3 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: 04dd885 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
👋 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! |
size-limit report 📦
|
|
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/349259 |
|
🟢 golden-jobs completed with status |
joshblack
left a comment
There was a problem hiding this comment.
Looks great! Just left a comment in case it's helpful info. I think you're totally good to go though since integration checks passed 🔥
| * | ||
| * @see https://www.scottohara.me/blog/2023/03/21/visually-hidden-hack.html | ||
| */ | ||
| export const VisuallyHidden = styled.span<SxProp>` |
There was a problem hiding this comment.
Just wanted to share in case it was helpful (and feel free to ignore me if this is obvious 😂), when migrating styled components that are exported two helpful things I've found to double-check check are the as prop and ref support.
When we update these kinds of components these don't come along and they may be used downstream. It's hard to tell if these are breaking changes or not so I think we've been evaluating it by seeing if they are used this way in dotcom when updating.
Thankfully the integration tests tend to do a good job of double-checking this, also feel free to use Primer Query (e.g. this link, if you need to login then you'll have to click the link again since query params aren't persisted 😅)
There was a problem hiding this comment.
Thank you for the reminder. I'll definitely add this to my routine on components moving forward!
Related To: https://github.com/github/primer/issues/4368
Closes: https://github.com/github/primer/issues/4368
Changelog
Changed
Convert VisuallyHidden component to css module behind feature flag
Rollout strategy
Testing & Reviewing