Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Making Circular Option Picker a
listbox
#52255Making Circular Option Picker a
listbox
#52255Changes from 1 commit
9232f14
1f87fc5
309e523
84ac262
37016b3
72e8889
d932389
b331d7c
a90e82f
142b7c2
7336b69
3692ccd
fc000ee
17f8837
a61af94
5385c6e
eb6658a
718f81f
d20d985
432af69
65a74fb
01693bb
aaa8c45
149c4da
8c22df2
78d88d0
e808582
b15497f
717469b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm actually not up to date on this, but is there a reason why we're using
useCompositeState
instead ofuseCompositeStore
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're still using
reakit
under the hood for this, which is whereuseCompositeState
is coming from. As and when we movecomposite
toariakit
we'll have to change that.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unsure about modeling the multiple palette case as
group
s in a singlelistbox
. From reading the WAI guidance, I think alistbox
is assumed to be one-dimensional (i.e. a list not a grid), with aaria-orientation
to dictate which arrow keys to use.What do you think about dropping the
group
construct and modeling them as separate listboxes?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After interacting with the
ColorPalette
storybook demo with multiple origins, I also got the feeling that having eachOptionGroup
as a separate tab stop feels better.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After further discussion, we've decided that we're going to keep the current behaviour, and iterate if/when necessary in a future PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Marking this as TODO so we don't forget to address it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, what exactly was the TODO item related to this line of code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrewhayward would you happen to know what needed to be done around this line?