Skip to content

Conversation

joshblack
Copy link
Member

Context: https://github.com/github/primer/issues/3104

Add support for live region announcements to SelectPanel.Loading

Changelog

New

  • Add test file for SelectPanel.Loading

Changed

  • Update type signature for SelectPanel.Loading to have optional children
  • Add support for announcements using Status helper

Removed

Rollout strategy

  • Minor release

Testing & Reviewing

  • Verify that stories that use SelectPanel.Loading announce the given (or default) loading message

@joshblack joshblack requested a review from siddharthkp March 18, 2024 17:33
@joshblack joshblack requested a review from a team as a code owner March 18, 2024 17:33
Copy link

changeset-bot bot commented Mar 18, 2024

🦋 Changeset detected

Latest commit: 6f0558a

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

Copy link
Contributor

github-actions bot commented Mar 18, 2024

size-limit report 📦

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

@github-actions github-actions bot temporarily deployed to storybook-preview-4407 March 18, 2024 17:36 Inactive
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.

Love it!

Left a tiny suggestion for changelog

const SelectPanelLoading = ({children = 'Fetching items...'}: React.PropsWithChildren) => {
return (
<Box
<Status
Copy link
Member

Choose a reason for hiding this comment

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

Low how simply this looks!

@joshblack joshblack enabled auto-merge March 19, 2024 16:34
@joshblack joshblack added this pull request to the merge queue Mar 19, 2024
Merged via the queue into main with commit 4a7e44a Mar 19, 2024
@joshblack joshblack deleted the feat/add-announce-to-select-panel-loading branch March 19, 2024 16:55
@primer primer bot mentioned this pull request Mar 19, 2024
lukasoppermann pushed a commit that referenced this pull request Apr 16, 2024
…ng (#4407)

* feat(SelectPanel): add support for announcements to SelectPanel.Loading

* chore: add changeset

* chore: run format

* Update .changeset/rare-moose-destroy.md

Co-authored-by: Siddharth Kshetrapal <[email protected]>

---------

Co-authored-by: Josh Black <[email protected]>
Co-authored-by: Siddharth Kshetrapal <[email protected]>
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