Skip to content

[Do not merge] SelectPanel2: Add story for "create new item" + <dialog> refactor - #4179

Closed
siddharthkp wants to merge 14 commits into
mainfrom
draft-selectpanel-story-create-new-with-dialog
Closed

[Do not merge] SelectPanel2: Add story for "create new item" + <dialog> refactor#4179
siddharthkp wants to merge 14 commits into
mainfrom
draft-selectpanel-story-create-new-with-dialog

Conversation

@siddharthkp

@siddharthkpsiddharthkp commented Jan 24, 2024

Copy link
Copy Markdown
Member

Open question on keyboard navigation: Should the "Create new label" button be reachable by arrow keys (like it's part of list) or with Tab (like it's outside of list). See storybook

selectpanel-create-new-item.mov

@siddharthkpsiddharthkp added the skip changeset This change does not need a changelog label Jan 24, 2024
@siddharthkpsiddharthkp self-assigned this Jan 24, 2024
@changeset-bot

changeset-botBot commented Jan 24, 2024

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 895511b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
NameType
@primer/reactPatch

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

@siddharthkpsiddharthkp changed the title [Do not merge] #4178 with #3840[Do not merge] SelectPanel2: Add story for "create new item" + <dialog> refactorJan 24, 2024
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
dist/browser.esm.js113.9 KB (+0.06% 🔺)
dist/browser.umd.js114.56 KB (+0.09% 🔺)

@siddharthkp

Copy link
Copy Markdown
MemberAuthor

@maximedegreve@ichelsea Question about focus management for you: Should the "Create new label" button be reachable by arrow keys (like it's part of list) or with Tab (like it's outside of list). See demo on storybook ↗

@maximedegreve

Copy link
Copy Markdown
Contributor

@ichelsea

ichelsea commented Jan 27, 2024

Copy link
Copy Markdown

@maximedegreve I left a comment in the Figma; there is some confusion because the first item in the Figma is that you can't leave the listboxwith arrow down 🤔 .

I assume this is if "create a new..." was the only option with no results in the listbox, but if the button is still living outside of the listbox which it should, we'll still need only tabbing.

I thought we settled on since the button lives outside of the listbox, we shouldn't allow arrowing down to it or back up to the input (if there are no results in the listbox). The arrow controls should only work inside of the listbox and a concession to allow arrowing down to the listbox from the input (but not back up) as a carry-over from previously expected user interaction.

It's possible we had some miscommunication on the use case with no results!

@siddharthkp
siddharthkp deleted the draft-selectpanel-story-create-new-with-dialog branch October 4, 2024 13:42
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changesetThis change does not need a changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@siddharthkp@maximedegreve@ichelsea@keithamus