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
NEXT: Svelte Tabs Component #2541
NEXT: Svelte Tabs Component #2541
Changes from 12 commits
afeb545
14c5355
37ac3b0
78dbb34
2fe18b7
7819679
9e0ae6c
d6338cc
a4a8ea3
6964420
6842522
93a2153
c0dacc5
6ef0dbb
69982d3
18c5c37
c3ad466
d47e9f7
532c7e8
46707b6
b78f01d
82d99eb
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 noticed we have both
tabX
andcontentX
props. Thelabel
serves a functional purpose only, it should not be styled. I'd suggest moving these styles up/down to the parent/children elements surrounding the<label>
element.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.
reference #2541 (comment)
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 shouldn't need to create an allowlist of codes. Just handle the code if it's appropriate.
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.
this will simplify the code a lot... I made some changes but I find it necessary for multiple keys that share some functionalities (we don't have to duplicate code if we use this style of escaping first).
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.
See above, this should be unnecessary if implemented properly.
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.
One again, I'd say let's disable and rethink our keyboard interaction strategy. I'll save my comments for the rest of this section.
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.
this is a common pattern to group keys functionality, using a switch for tow cases with the same behavior will make the code harder to read.
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.
Echoing: avoid style duplication between the label and wrapping element within. Pick one or the other. This adds extra overhead for users to understand.
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.
duplicating the styles was necessary because we have tow different styling levels, one for the line under the active tab (full cell style) and one for the content (outline styles).
I would be happy to change it if you have a suggestion on how to solve some of the issues that comes from combining both, for example the rounding of the outline and the rounding of the line under the active tab.