Skip to content

Add bg prop to ProgressBar.Item #5007

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

Merged
merged 3 commits into from
Sep 24, 2024
Merged

Conversation

lukasoppermann
Copy link
Contributor

@lukasoppermann lukasoppermann commented Sep 23, 2024

Adds a bg prop for on ProgressBar.Item as discussed in https://github.slack.com/archives/GACAW0NPM/p1726839001767409

Follow-up task

Changelog

  • Adds a bg prop for on ProgressBar.Item

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

@lukasoppermann lukasoppermann requested a review from a team as a code owner September 23, 2024 07:33
Copy link

changeset-bot bot commented Sep 23, 2024

🦋 Changeset detected

Latest commit: 2ef06ac

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

lukasoppermann added a commit to primer/eslint-plugin-primer-react that referenced this pull request Sep 23, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview-5007 September 23, 2024 07:35 Inactive
@lukasoppermann lukasoppermann force-pushed the @lukasoppermann/progressbar branch from 71530f0 to 09c95e3 Compare September 23, 2024 07:37
@github-actions github-actions bot temporarily deployed to storybook-preview-5007 September 23, 2024 07:39 Inactive
Copy link
Contributor

github-actions bot commented Sep 23, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 97.84 KB (-0.13% 🔽)
packages/react/dist/browser.umd.js 98.21 KB (-0.03% 🔽)

@lukasoppermann lukasoppermann force-pushed the @lukasoppermann/progressbar branch from 623c2de to 0a88699 Compare September 23, 2024 08:29
@github-actions github-actions bot temporarily deployed to storybook-preview-5007 September 23, 2024 08:31 Inactive
lukasoppermann added a commit to primer/eslint-plugin-primer-react that referenced this pull request Sep 23, 2024
* Add bg for ProgressBar.item

Merge this once primer/react#5007 is merged

* Create beige-schools-horse.md
Copy link
Member

@siddharthkp siddharthkp left a comment

Choose a reason for hiding this comment

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

Request some minor improvements

Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com>
if (args.bg && args.bg !== '') {
setSectionColors([args.bg, ...sectionColorsDefault])
}
}, [args.bg])
Copy link
Member

@siddharthkp siddharthkp Sep 24, 2024

Choose a reason for hiding this comment

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

(non blocker, nit picking) Didn't really understand what this block of code does, can you help me?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed to avoid error: "To many re-renders"

@lukasoppermann lukasoppermann added this pull request to the merge queue Sep 24, 2024
Merged via the queue into main with commit c909285 Sep 24, 2024
32 checks passed
@lukasoppermann lukasoppermann deleted the @lukasoppermann/progressbar branch September 24, 2024 11:16
@primer primer bot mentioned this pull request Sep 24, 2024
@primer primer bot mentioned this pull request Oct 18, 2024
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.

2 participants