-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Someone is attempting to deploy a commit to the Skeleton Labs Team on Vercel. A member of the Team first needs to authorize it. |
@Mahmoud-zino this is great, but since the feature is not added to the main doc site it won't generate a preview for it. So I can't check until I'm back to my workstation - likely on Monday. In the meantime can you help remind me to flush out the tickets before we start implementing features? This issue is empty, and that should almost never be the case before we begin a feature. I realize you've got time to get a head start and that's great, but I want to avoid a situation where there's a major change not documented that doesn't get missed. To avoid a lot of duplicated effort or even requiring a feature to be rebuilt from the ground up. Plain and simple, I don't want to waste your time! There's a few things for Tabs specifically I need to put some thought into:
Figma stuff aside, I'll try to get the rest asap. |
@Mahmoud-zino I've had a moment to run through and write out my proposed updates and changes for the Tabs component feature: Let me know if you have any specific questions or feedback regarding these. Just FYI I'm going to try to devote some time this afternoon to flushing this out for a few other upcoming components so this is ready before you start next time (sorry about that!). Likewise I'm going to ping Bohdan to see if he can work up a mock for the tab style for us that you can follow. If you need help with with design, I don't mind jumping in as well! |
…feat/tabs-next
…feat/tabs-next
…feat/tabs-next
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
packages/skeleton-svelte/src/lib/components/Tab/TabsControl.svelte
Outdated
Show resolved
Hide resolved
packages/skeleton-svelte/src/lib/components/Tab/TabsControl.svelte
Outdated
Show resolved
Hide resolved
packages/skeleton-svelte/src/lib/components/Tab/TabsControl.svelte
Outdated
Show resolved
Hide resolved
packages/skeleton-svelte/src/lib/components/Tab/TabsPanel.svelte
Outdated
Show resolved
Hide resolved
packages/skeleton-svelte/src/lib/components/Tab/TabsPanel.svelte
Outdated
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
@Mahmoud-zino I've gone ahead and closed all feedback comments above so we can start "fresh". You were right, there's a number of places where the ARIA spec diverges from my expectations, so we'll defer to their instruction. I've made a number of small to medium sized changes, which you can review here: Preview Page
Design
ComponentsGeneral
Tabs (root)
Tabs.Control
Tabs.Panel
Tab Panel Tabindex ChangePer the panel change - I know you implemented the extra wrapping div to handle the auto-selection between the panel and panel contents (when a focusable element is present). We can likely migrate this logic from the Tabs -> Panel component. I unfortunately have run out of time to do this today, but will plan to pick up here tomorrow (sorry!) Next StepsI'm like 95% happy with the state of this now, but I want to revisit tomorrow to try and simplify the styles a bit more. I think we can find a happy medium between the default styles and ease of use for customization. Let's plan to sync tomorrow on what remains.
But overall great job bud! |
@Mahmoud-zino here's the second wave of updates:
Per
You now have my blessing to port this to React. Likewise once Hugo's doc updates are complete, let's make sure to return and add this component to the doc site! Given this PR updates several portions of the doc site - I'd advise we merge this BEFORE the doc updates, so keep the merge simpler on this end. |
@Mahmoud-zino I've go ahead and merged this PR. The reason being is this had some linting changes that spilled over into the documentation section. We need the doc section as "clean" as possible before #2561 is merged. Otherwise we're in for some nasty merge conflicts. I'm going to rename this PR to make it specific to the Svelte component. Feel free to start a follow up PR to port the React version of the Tabs component next. By doing this (assuming you start after #2561 is merged) you'll actually be able to implement both the Svelte and React components in the docs! Feel free to check with me or Hugo if you need additional details around the doc updates. |
Linked Issue
Closes #2395
Description
tabs-next