-
Notifications
You must be signed in to change notification settings - Fork 93
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
Implement sidebar component #340
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
091b4c8
to
5393e0e
Compare
Okay, we're all good here! I added some accessibility stuff according to the aria guidelines. Please test! 🙏 🙇♀️ To ignore:
|
This comment has been minimized.
This comment has been minimized.
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.
Tested and works nicely 👍
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
5393e0e
to
203df94
Compare
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.
Tabs should be optional. Currently, I'm forced to use them (otherwise I will get JavaScript errors). However, using tabs if there is only few content to display doesn't make any sense.
Alternatively, I could provide a single tab and you could hide app-sidebar-tabs__nav
if there is only one tab. But then I have to use a fake name and icon for the tab.
@korelstar why would tabs be optional? Though I agree, you could also have too little informations to need 2 tabs or more. Any ideas?
|
In general, I agree totally, that tabs are useful. It just looks weird if I need one tab only. But you're right, the second variant isn't the best. Maybe you could just add more space between button 1 and the (tab) content? |
Yes, @korelstar has a good point – if there is only 1 section of content, the tabs are not needed. The tab content fields should also be self-explanatory (chat will have chat history and an input box, and detail inputs will have labels etc.) so we can leave it if there is only one tab. |
@jancborchardt so, we don't change anything and we left it like the second screenshot? |
@skjnldsv yup, I'd say 2nd screenshot is good! (Of course with only 1 line of text it looks off, but that's also the case with the tab header. ;) |
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
All done! |
No, this doesn't work, because you get an error "Error in mounted hook: "TypeError: this.tabs[0] is undefined" But using a single tab is fine for me. This works as expected, now. |
@korelstar ah, I might have forgot a check somewhere :) |
@korelstar could you open a new issue with the full log stack? :) |
Even better: I've provided a fix for that problem in #359. :-) |
There was an error when a `AppSidebar` doesn't contain any `AppSidebarTab`s and uses just the content directly. See #340 (comment)
@nextcloud/vue
Closes nextcloud/server#10289
Standardisation is minimal but looks very nice and allow quite a few specificity that looks really great!