-
Notifications
You must be signed in to change notification settings - Fork 92
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
feat: Add NcAppNavigationList #5302
Conversation
@@ -66,7 +66,7 @@ emit('toggle-navigation', { | |||
@keydown.esc="handleEsc"> | |||
<slot /> | |||
<!-- List for Navigation li-items --> | |||
<ul class="app-navigation__list"> | |||
<ul v-if="hasListSlotItems" class="app-navigation__list"> |
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.
Is ul.app-navigation__list
different from NcAppNavigationList
?
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.
Also stumbled over this one, could we not just use NcAppNavigationList
here instead?
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.
Is
ul.app-navigation__list
different fromNcAppNavigationList
?
Yes slightly. The difference is ul.app_navigation__list
always fills the height that is not already taken up by its siblings inside nav.app-navigation__content
but when we have separate lists inside the nav we want don't want that e.g.
so we adjust the styles in NcAppNavigationList to keep the styling we want:
The .app_navigation__list
styles also target .app_navigation__content > ul
which we should keep to not break anything, so we also increase the specificity to have the styles apply correctly
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.
great refactoring work!
Signed-off-by: Christopher Ng <chrng8@gmail.com>
3c4bee4
to
ff033b3
Compare
/backport to next |
☑️ Resolves
ul
s inside NcAppNavigation makes sense i.e. using NcAppNavigationCaption as a label for the nextul
🏁 Checklist
next
requested with a Vue 3 upgrade