From 3c467efc794d47326613796149f422c24a9b3cb9 Mon Sep 17 00:00:00 2001 From: Tyler Jones Date: Tue, 18 Jun 2024 16:58:40 -0400 Subject: [PATCH] Fixes for `ActionList` semantics (#4272) * Add fixes for ActionList * More type fixes * temp type fixes * Add condition for inactive items * add yet another condition * chore(deps): bump changesets/action from 1.4.5 to 1.4.6 (#4282) 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](https://github.com/changesets/action/compare/f13b1baaa620fde937751f5d2c3572b9da32af23...e2f8e964d080ae97c874b19e27b12e0a8620fb6c) --- updated-dependencies: - dependency-name: changesets/action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * test(e2e): add e2e test for SelectPanel2 default story (#4279) * 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 * Address a few v8 color bugs (#4278) * 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 Co-authored-by: Josh Black * chore(deps-dev): bump ip from 2.0.0 to 2.0.1 (#4291) Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1. - [Commits](https://github.com/indutny/node-ip/compare/v2.0.0...v2.0.1) --- updated-dependencies: - dependency-name: ip dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Change how `ref` is handled * Change types * Update storybook example types * Update types on component * Add another type * Update type in `SegmentedControl` * Add back `li`-only type * Add onto `onSelect` type * Update more types * Type fixes for `LinkItem` * Changes from feedback * Change types * Replace `role="list"` with context * Add feature flag to `ActionList.Item * Add back forwardedRef in cases where valid role is true * Update FF name * Add lint disable * Update FF name * Add changeset * Remove `list` condition * Rename FF * Address feedback * Add feature flag story * Add new test * Add feature flag to all stories --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josh Black Co-authored-by: Josh Black Co-authored-by: Katie Langerman <18661030+langermank@users.noreply.github.com> Co-authored-by: langermank --- .changeset/hot-mayflies-pump.md | 5 ++ packages/react/.storybook/preview.js | 5 +- .../ActionList.features.stories.tsx | 24 +++++++ .../react/src/ActionList/ActionList.test.tsx | 67 +++++++++++++++++ packages/react/src/ActionList/Item.tsx | 71 ++++++++++++++++--- packages/react/src/ActionList/LinkItem.tsx | 2 +- packages/react/src/ActionList/shared.ts | 6 +- .../ActionMenu.examples.stories.tsx | 2 +- packages/react/src/NavList/NavList.tsx | 9 ++- .../src/SegmentedControl/SegmentedControl.tsx | 2 +- .../_AutocompleteSuggestions.tsx | 2 +- 11 files changed, 177 insertions(+), 18 deletions(-) create mode 100644 .changeset/hot-mayflies-pump.md diff --git a/.changeset/hot-mayflies-pump.md b/.changeset/hot-mayflies-pump.md new file mode 100644 index 00000000000..a03fcc22499 --- /dev/null +++ b/.changeset/hot-mayflies-pump.md @@ -0,0 +1,5 @@ +--- +'@primer/react': minor +--- + +(Behind feature flag) ActionList: Utilizes `