-
Notifications
You must be signed in to change notification settings - Fork 96
Add aria-hidden attr to the whole navigation depending on a sidebar state #4016
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,15 +59,16 @@ emit('toggle-navigation', { | |
| role="navigation" | ||
| :class="{'app-navigation--close':!open }"> | ||
| <NcAppNavigationToggle :open="open" @update:open="toggleNavigation" /> | ||
| <slot /> | ||
|
|
||
| <!-- List for Navigation li-items --> | ||
| <ul class="app-navigation__list"> | ||
| <slot name="list" /> | ||
| </ul> | ||
|
|
||
| <!-- Footer for e.g. AppNavigationSettings --> | ||
| <slot name="footer" /> | ||
| <div :aria-hidden="ariaHidden" class="app-navigation__content"> | ||
| <slot /> | ||
| <!-- List for Navigation li-items --> | ||
| <ul class="app-navigation__list"> | ||
| <slot name="list" /> | ||
| </ul> | ||
|
|
||
| <!-- Footer for e.g. AppNavigationSettings --> | ||
| <slot name="footer" /> | ||
| </div> | ||
| </div> | ||
| </template> | ||
|
|
||
|
|
@@ -91,6 +92,11 @@ export default { | |
| open: true, | ||
| } | ||
| }, | ||
| computed: { | ||
| ariaHidden() { | ||
| return this.open ? 'false' : 'true' | ||
| }, | ||
| }, | ||
|
|
||
| watch: { | ||
| isMobile() { | ||
|
|
@@ -156,10 +162,6 @@ export default { | |
| -moz-user-select: none; | ||
| -ms-user-select: none; | ||
| user-select: none; | ||
| display: flex; | ||
| flex-direction: column; | ||
| flex-grow: 0; | ||
| flex-shrink: 0; | ||
| background-color: var(--color-main-background-blur, var(--color-main-background)); | ||
| -webkit-backdrop-filter: var(--filter-background-blur, none); | ||
| backdrop-filter: var(--filter-background-blur, none); | ||
|
|
@@ -183,6 +185,13 @@ export default { | |
| gap: var(--default-grid-baseline, 4px); | ||
| padding: calc(var(--default-grid-baseline, 4px) * 2); | ||
| } | ||
| &__content { | ||
| height: 100%; | ||
| display: flex; | ||
| flex-direction: column; | ||
| flex-grow: 0; | ||
| flex-shrink: 0; | ||
|
Comment on lines
+190
to
+193
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These styles are moved from
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it is hard to test all apps and the risk to break something is high. I could remove https://github.com/nextcloud/nextcloud-vue/blob/master/src/components/NcAppNavigation/NcAppNavigation.vue#L161-L162 but would like leave it to be safe.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| } | ||
JuliaKirschenheuter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| // add extra border for high contrast mode | ||
|
|
||
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 needs reverting it heavily breaks the talk left sidebar:

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.
Yep, I would have blocked if seen on time, this seems absolutely not related to this PR
Uh oh!
There was an error while loading. Please reload this page.
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.
@JuliaKirschenheuter @ShGKme⚠️
Uh oh!
There was an error while loading. Please reload this page.
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.
Yes, but not all of them.
These styles are flex container styles. They should have been moved.
while these are flex elements styles. They should be only here.
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.
50% of these styles are flex container styles. In this PR there was created a new flex container for all content, and all flex container styles were moved to the new flex container. So, they are related.
Although, another 50% were flex element styles and really not related.
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.
Ok, this what i feared: it is hard to test every app. Thank you @ShGKme for explanation and fixing!