Skip to content

Conversation

Westbrook
Copy link
Contributor

This merges @adixon-adobe previous work and my recent work on Menu selection into main.

I've added this one commit: a3120ab to document the new usage of sp-action-menu and to ensure that the package is given a "breaking" (in pre-1.0 land feature) version change.

See the previous PRs for reference:

Issues referenced:
fixes #350
fixes #715
fixes #1189
fixes #1505

adixon-adobe and others added 6 commits July 29, 2021 16:45
This enables multiple, single, none, and inherited selects for menus. I
also updated the menu item aria roles to better match these states. Menu
also manages it's own selection with these changes, but we'll tackle
actually using that in PickerBase with a followup issue.

Re-working the way menu items are managed also made resolving the items
ownership async, which required some test changes. Tests were added for
the new functionality.
Use the `selects` attribute set to `single` for previous functionality.
@Westbrook Westbrook requested a review from adixon-adobe July 29, 2021 21:18
@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

Tachometer results for changed packages

action-bar permalink

Version Bytes Avg Time vs remote vs branch
remote 312 kB 17.33ms - 17.50ms - unsure 🔍
-1% - +1%
-0.10ms - +0.16ms
branch 310 kB 17.29ms - 17.48ms unsure 🔍
-1% - +1%
-0.16ms - +0.10ms
-

action-menu permalink

Version Bytes Avg Time vs remote vs branch
remote 773 kB 337.94ms - 342.40ms - unsure 🔍
-0% - +2%
-0.12ms - +6.43ms
branch 784 kB 334.61ms - 339.41ms unsure 🔍
-2% - +0%
-6.43ms - +0.12ms
-

menu permalink

Version Bytes Avg Time vs remote vs branch
remote 515 kB 264.32ms - 267.23ms - faster ✔
14% - 15%
42.13ms - 45.89ms
branch 526 kB 308.59ms - 310.98ms slower ❌
16% - 17%
42.13ms - 45.89ms
-

picker permalink

Version Bytes Avg Time vs remote vs branch
remote 765 kB 661.55ms - 667.17ms - slower ❌
2% - 3%
10.77ms - 20.27ms
branch 775 kB 645.01ms - 652.67ms faster ✔
2% - 3%
10.77ms - 20.27ms
-

popover permalink

Version Bytes Avg Time vs remote vs branch
remote 315 kB 32.24ms - 32.78ms - unsure 🔍
-2% - +0%
-0.60ms - +0.15ms
branch 313 kB 32.48ms - 32.99ms unsure 🔍
-0% - +2%
-0.15ms - +0.60ms
-

split-button permalink

Version Bytes Avg Time vs remote vs branch
remote 784 kB 2061.17ms - 2080.01ms - faster ✔
8% - 9%
176.65ms - 198.22ms
branch 795 kB 2252.76ms - 2263.28ms slower ❌
8% - 10%
176.65ms - 198.22ms
-

tooltip permalink

Version Bytes Avg Time vs remote vs branch
remote 318 kB 28.89ms - 29.44ms - unsure 🔍
-1% - +2%
-0.22ms - +0.53ms
branch 316 kB 28.75ms - 29.27ms unsure 🔍
-2% - +1%
-0.53ms - +0.22ms
-

Copy link
Collaborator

@adixon-adobe adixon-adobe left a comment

Choose a reason for hiding this comment

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

Awesome -- very exciting!

  _______
 |       |
(|WINNING|)
 |  #1   |
  \     /
   `---'
   _|_|_

@Westbrook Westbrook merged commit 54d636f into main Jul 29, 2021
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.

sp-menu-group is overkill Add more menu selection customizability Menu should manage its own state Support an "sp-action-menu" w/o value

2 participants