Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Aug 11, 2025

This PR removes the usage of styled-components from the Hidden component's feature stories as part of the ongoing migration away from styled-components.

Changes Made

  • Removed Box import from the story file
  • Replaced <Box> wrapper elements with plain <div> elements in both stories:
    • HideContent story
    • RenderContentResponsively story

Why This Change

The Box component is deprecated and uses styled-components internally. Since these stories were only using Box as simple container elements without any specific styling, they can be safely replaced with plain HTML div elements.

Testing

  • ✅ Stories render correctly in Storybook
  • ✅ All linting and formatting checks pass
  • ✅ Build completes successfully
  • ✅ No visual or functional changes to the stories

The stories continue to function exactly as before, demonstrating the Hidden component's responsive behavior, but now without any dependency on styled-components.

Fixes #6573.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copy link

changeset-bot bot commented Aug 11, 2025

⚠️ No Changeset found

Latest commit: 6391615

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@Copilot Copilot AI changed the title [WIP] Update Hidden.features.stories.tsx to no longer use styled-components Update Hidden.features.stories.tsx to no longer use styled-components Aug 11, 2025
@Copilot Copilot AI requested a review from hectahertz August 11, 2025 17:00
Copilot finished work on behalf of hectahertz August 11, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Hidden.features.stories.tsx to no longer use styled-components
2 participants