Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19128

burger menu does not have a description

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.6-rc-1
    • 13.1
    • None
    • Unknown
    • N/A
    • N/A
    • 1.3.1 Info and Relationships

    Description

      We faced an a11y issue while bitv examination (german wcag). The left burger menu on mobile devices has no description. Screen reader says "button" only.

      This menu has a span with class="sr.only" but no text in it. So we fixed it this way:

      // top menu as burger on mobile devices has no description
      try {
         let burger = document.querySelector("#headerglobal > div.menu-horizontal-toggle > div.navbar-header > p > button > span.sr-only")
         burger.textContent = "top menu";
      } catch (e) {
        console.log('top menu burger not found')
      }

      Attachments

        Activity

          People

            Lucas C Charpentier Lucas
            Simpel Simpel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: