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.
ChristophWurst
left a comment
There was a problem hiding this comment.
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
korelstar
left a comment
There was a problem hiding this comment.
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!