Skip to content

Commit

Permalink
fix(NcAppSidebar): label aside by its header
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
  • Loading branch information
ShGKme committed Feb 7, 2024
1 parent a8c5aa0 commit cf330f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/NcAppSidebar/NcAppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ export default {
<aside id="app-sidebar-vue"
ref="sidebar"
class="app-sidebar"
:aria-labelledby="`app-sidebar-vue-${uid}__header`"
@keydown.esc.stop="isMobile && closeSidebar()">
<header :class="{
'app-sidebar-header--with-figure': hasFigure,
Expand Down Expand Up @@ -403,6 +404,7 @@ export default {
<div class="app-sidebar-header__mainname-container">
<!-- main name -->
<h2 v-show="!nameEditable"
:id="`app-sidebar-vue-${uid}__header`"
v-linkify="{text: name, linkify: linkifyName}"
:aria-label="title"
:title="title"
Expand Down Expand Up @@ -492,6 +494,7 @@ import Focus from '../../directives/Focus/index.js'
import Linkify from '../../directives/Linkify/index.js'
import Tooltip from '../../directives/Tooltip/index.js'
import { useIsSmallMobile } from '../../composables/useIsMobile/index.js'
import GenRandomId from '../../utils/GenRandomId.js'
import { getTrapStack } from '../../utils/focusTrap.js'
import { t } from '../../l10n.js'
Expand Down Expand Up @@ -650,6 +653,7 @@ export default {
setup() {
return {
uid: GenRandomId(),
isMobile: useIsSmallMobile(),
}
},
Expand Down

0 comments on commit cf330f2

Please sign in to comment.