Verwendung: Tasten-Navi geht nicht richtig.

Thomas Janotta's Avatar

Thomas Janotta

30 Aug, 2025 12:46 PM

Produkt: Luxe Contao
Contao-Version: 5.3
Browser und Browserversionen: Edge, Chrome, FF

Hallo, auch beim Vision öffnet sich bei Tastaturnutzung (Tab-Taste) ein Untermenü nicht richtig, er geht zwar zum Link, aber das Untermenü ist nicht sichtbar,.
Wie könnte man das anpassen (Barrierefreiheit).

Danke.

  1. Support Staff 1 Posted by RockSolid Theme... on 01 Sep, 2025 08:28 AM

    RockSolid Themes's Avatar

    Vielen Dank für Ihre Frage.

    Fügen Sie dafür bitte folgenden CSS-Code in die Datei files/vision/css/custom.css ein:

    #nav-main > ul > li:focus-within > ul {
        display: block;
    }
    
  2. Support Staff 2 Posted by RockSolid Theme... on 01 Sep, 2025 08:32 AM

    RockSolid Themes's Avatar

    Für das Theme Luxe verwenden Sie bitte folgenden CSS-Code:

    .main-navigation > ul > li:focus-within {
        z-index: 5;
    }
    .main-navigation > ul > li:focus-within > ul {
        max-height: 9999px;
        padding: 1em;
        opacity: 1;
        transition: opacity 0.2s;
    }
    .main-navigation > ul > li.submenu:focus-within:before {
        content: " ";
        display: block;
    }
    
  3. 3 Posted by Thomas Janoota on 01 Sep, 2025 04:46 PM

    Thomas Janoota's Avatar

    Hallo,
    danke, so hatte ich auch gedacht. Das focus-within war der Punkt.
    Das könntet ihr ja in den Themes nachführen.
    Thomas.

  4. Support Staff 4 Posted by RockSolid Theme... on 02 Sep, 2025 07:35 AM

    RockSolid Themes's Avatar

    Das könntet ihr ja in den Themes nachführen.

    Ja, in den nächsten Versionen der Themes werden diese Änderungen enthalten sein.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac