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
TabPanel
: implement Ariakit internally #52133TabPanel
: implement Ariakit internally #52133Changes from 26 commits
f20e989
8b002ae
3f9b7e0
97a4edc
bbac641
3795477
5ede3dc
1bab116
75f090c
ea1e21e
dac69b7
e7b0aa2
6195305
68fcf7e
b9e019c
37c014b
c89aedd
582afa5
c97cbee
00d2eaa
4b7d7bb
aa1bfc2
defdb27
9731da4
9507f4f
d938bd3
60c70d5
6b98f0a
1782f26
4924d02
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.
Just having a look at this PR — is there a reason why we imported
* from Ariakit
instead of importing only the needed components / functions?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.
No, actually. Importing just the needed items would have been better. I'll plan a followup.
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.
Just in case this is a factor, besides code style/aesthetics, there's no difference between importing the namespace and components individually. In the docs, we sometimes use the namespace import. The reasons are described in this section of the docs: https://ariakit.org/guide/coding-guidelines#import-namespace
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.
The current
TabPanel
component addsaria-controls
attributes to all of theTabs
, even though with lazy loading only the currently active tab was actually rendered. Ariakit was only adding this attribute for the current tab, because technically it's the only one that exists. I've manually added this in for consistency to match existing snapshots as closely as possible, but we can easily remove it and update the snapshots to expect the new behavior instead.