Site logo

[Resolved] [aria-hidden=”true”] elements contain focusable descendents

Home Forums Support [Resolved] [aria-hidden=”true”] elements contain focusable descendents

Home Forums Support [aria-hidden=”true”] elements contain focusable descendents

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #2407683
    roadlink

    Hi there,

    We have started to get this warning after yesterday’s updates on GP and GPP.

    Do you have any advise?

    #2407853
    David
    Staff
    Customer Support

    Hi there,

    what happens if you add this CSS to the site ?

    
    #generate-slideout-menu[aria-hidden="true"] :is(button, input) {
        display: none;
    }
    #2408910
    roadlink

    I have added it to additional css part but still see same warnings.

    #2409072
    Fernando
    Customer Support

    Hi Roadlink,

    I see. Can you try replacing the code above with this instead to test as well?:

    #generate-slideout-menu[aria-hidden="true"] :is(button, input) {
        visibility: hidden;
    }
    #2410996
    roadlink

    Hi Fernando,

    I replaced but seems didn’t work.

    Can you also check?

    Thanks a lot.
    Have a nice day

    #2411132
    David
    Staff
    Customer Support

    So the error being reported is related to this:

    https://dequeuniversity.com/rules/axe/4.4/aria-hidden-focus

    If you look at the second bullet point: Content hidden through CSS. Then that should resolve the issue. But it seems Google doesn’t resolve it.

    Try this:

    
    #generate-slideout-menu[aria-hidden="true"] * {
        display: none !important;
        visibility: hidden;
    }
    #2411759
    roadlink

    Hi David,

    Yes, this solved the issue.

    thank a lot.

    https://prnt.sc/tKadsbP1qsm5

    #2411999
    roadlink

    I see this in change log.
    Should I keep this additional CSS in anyway?

    GP Premium 2.2.1
    Fix: Add value to off-canvas aria-hidden attribute
    Tweak: Remove/add aria-hidden to off-canvas on toggle

    #2412345
    David
    Staff
    Customer Support

    Should I keep this additional CSS in anyway?

    Yes, as the CSS is fixing a different issue. We’ll get that patched in the next main update.

    #2457303
    roadlink

    Hi David,

    Is new version released to solve this issue?

    GP Premium 2.2.2
    Fix: Off Canvas anchor links not working

    #2458258
    Ying
    Staff
    Customer Support

    No, it’s not the fix for this issue.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.