Skip to content

Conversation

langermank
Copy link
Contributor

  • Adds a variant prop to handle the two styles
  • CSS cleanup and consolidation
  • More feature stories

@Copilot Copilot AI review requested due to automatic review settings September 4, 2025 22:46
@langermank langermank requested a review from a team as a code owner September 4, 2025 22:46
Copy link

changeset-bot bot commented Sep 4, 2025

🦋 Changeset detected

Latest commit: 3c3fdd5

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

This PR includes changesets to release 2 packages
Name Type
@primer/react Patch
@primer/styled-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

@langermank langermank changed the base branch from main to pk/breadcrumbs-with-overflow-menu September 4, 2025 22:47
@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 Sep 4, 2025
Copy link
Contributor

github-actions bot commented Sep 4, 2025

👋 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!

@langermank langermank changed the title Style prop Breadcrumb overflow styling Sep 4, 2025
Copy link
Contributor

github-actions bot commented Sep 4, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 90.78 KB (+0.04% 🔺)
packages/react/dist/browser.umd.js 90.99 KB (+0.15% 🔺)

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@pksjce
Copy link
Contributor

pksjce commented Sep 5, 2025

Thanks for this!
I made the following tweaks

  • Got the stories back to state where I can flick the FF from the top menu
  • Made variant to be applicable only with new ff. The old one can remain as is.

@primer primer deleted a comment from github-actions bot Sep 5, 2025
@github-actions github-actions bot temporarily deployed to storybook-preview-6728 September 5, 2025 07:53 Inactive
@github-actions github-actions bot requested a deployment to storybook-preview-6728 September 5, 2025 08:00 Abandoned
@pksjce
Copy link
Contributor

pksjce commented Sep 5, 2025

@copilot fix the lint error

Copy link
Contributor

Copilot AI commented Sep 5, 2025

@pksjce I've opened a new pull request, #6730, to work on those changes. Once the pull request is ready, I'll request review from you.

[SELECTED_CLASS]: selected,
[classes.ItemSelected]: selected,
})}
className={clsx(className, classes.Item, selected && 'selected')}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pksjce I just moved all selected logic into aria-current in CSS, so we don't need that ItemSelected class. No idea what selected is doing, probably something in dotcom

@github-actions github-actions bot temporarily deployed to storybook-preview-6728 September 5, 2025 21:42 Inactive
@langermank langermank added the update snapshots 🤖 Command that updates VRT snapshots on the pull request label Sep 5, 2025
@primer primer bot requested a review from a team as a code owner September 5, 2025 21:59
@primer primer bot requested a review from mperrotti September 5, 2025 21:59
@github-actions github-actions bot removed the update snapshots 🤖 Command that updates VRT snapshots on the pull request label Sep 5, 2025
@github-actions github-actions bot temporarily deployed to storybook-preview-6728 September 5, 2025 22:08 Inactive
@@ -153,6 +136,7 @@
& summary {
list-style: none;
cursor: pointer;
outline: none;
Copy link
Contributor

Choose a reason for hiding this comment

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

This makes the focus outline around the menu button go away. Since button + summary is same element. When you tab along, there is no focus outline.

@pksjce pksjce merged commit c247260 into pk/breadcrumbs-with-overflow-menu Sep 8, 2025
40 checks passed
@pksjce pksjce deleted the style-prop branch September 8, 2025 02:09
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants