Skip to content
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

Introduce TrailingAction to ActionList #4634

Merged
merged 85 commits into from
Jun 21, 2024
Merged

Conversation

khiga8
Copy link
Contributor

@khiga8 khiga8 commented May 30, 2024

Depends on: #4272

Fixes: https://github.com/github/primer/issues/1966
Towards: https://github.com/github/accessibility-audits/issues/2942

Changelog

New

This PR introduces a TrailingAction feature to the ActionList component. This allows for a secondary action to be displayed on the right side of an ActionList.Item.

The ActionList.Item can be rendered as either an IconButton or a Button depending on the presence of an icon prop. Semantically, the ActionList.Item can be either a button or an a tag.

We implemented this feature according to the agreed upon proposed API. Kudos to @broccolinisoup for invaluable feedback!

⚠️ While working on this feature, we discovered an existing issue of horizontal overflow occurring when a description is long. Given this is an existing problem, we've filed an issue for that to be investigated/addressed separately - #4664.

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

TylerJDev and others added 30 commits February 14, 2024 15:43
Bumps [changesets/action](https://github.com/changesets/action) from 1.4.5 to 1.4.6.
- [Release notes](https://github.com/changesets/action/releases)
- [Changelog](https://github.com/changesets/action/blob/main/CHANGELOG.md)
- [Commits](changesets/action@f13b1ba...e2f8e96)

---
updated-dependencies:
- dependency-name: changesets/action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(SelectPanel2): add aria-labelledby to listbox

* test(e2e): add e2e test for SelectPanel2 default story

* chore: add changeset

* test(vrt): update snapshots

---------

Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
* small bug fixes with v8

* Create khaki-schools-lay.md

* test(vrt): update snapshots

* snippy snaps

* test(vrt): update snapshots

* test: update snapshots

* test: update snapshots

* try commenting flakey tests

* test: comment out flakey snapshot test

---------

Co-authored-by: langermank <langermank@users.noreply.github.com>
Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](indutny/node-ip@v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@github-actions github-actions bot temporarily deployed to storybook-preview-4634 June 20, 2024 17:32 Inactive
@khiga8
Copy link
Contributor Author

khiga8 commented Jun 20, 2024

Thank you for the types suggestion @joshblack! It worked - update types! 😁

@siddharthkp
Copy link
Member

Hi! 👋 Please add the new prop to ActionList.docs.json as well

@khiga8 khiga8 added this pull request to the merge queue Jun 21, 2024
Merged via the queue into main with commit db72a71 Jun 21, 2024
30 checks passed
@khiga8 khiga8 deleted the v-team-trailing-action-action-list branch June 21, 2024 19:43
@primer primer bot mentioned this pull request Jun 21, 2024
@khiga8 khiga8 mentioned this pull request Jun 25, 2024
13 tasks
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.

6 participants