Skip to content

Update ActionBar.examples.stories.tsx to no longer use styled-components #6543

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

llastflowers
Copy link
Contributor

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

Changelog

New

Added new CSS module

Changed

Changed ActionBar.examples.stories.tsx to no longer use styled-components

Removed

Removed anything associated with styled-components

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

Merge checklist

@llastflowers llastflowers self-assigned this Aug 8, 2025
@llastflowers llastflowers added skip changeset This change does not need a changelog integration-tests: skipped manually Changes in this PR do not require an integration test labels Aug 8, 2025

This comment was marked as resolved.

Copy link
Contributor

github-actions bot commented Aug 8, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 90.2 KB (0%)
packages/react/dist/browser.umd.js 90.38 KB (0%)

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 migrates the ActionBar examples stories from styled-components to CSS modules, removing the dependency on the Box component and inline styling while maintaining the same visual appearance and functionality.

  • Replaced all Box components with semantic HTML elements (div, header)
  • Created a new CSS module file with equivalent styles using CSS custom properties
  • Removed styled-components usage while preserving existing component behavior

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
ActionBar.examples.stories.tsx Replaced Box components with HTML elements and CSS classes, removed styled-components imports
ActionBar.examples.stories.module.css Added CSS module with equivalent styles using design tokens and CSS custom properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: skipped manually Changes in this PR do not require an integration test skip changeset This change does not need a changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants