• Resolved dasha999999

    (@dasha999999)


    Hi, I noticed that the cookie banner is blocked by the screen reader after reopening it. After I click either close or accept or deny the cookie banner moves to the bottom of the screen and I can expand it again by clicking on it or by selecting it with the keyboard or the screen reader simulator. I can expand the cookie banner in the screen reader but after it is expanded I can’t access any information there.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @dasha999999,

    I hope I understood the question correctly, do you wish to “re-focus/select” an element (such as the Accept button) in the Complianz Cookie Banner after it is re-opened by using the Manage Consent button?

    Kind regards, Jarno

    Thread Starter dasha999999

    (@dasha999999)

    Hi @jarnovos, yes that’s what I meant. After I open the Complianz Banner by using the Manage Consent button in the screen reader I can’t get access to its contents with the screen reader (banner text, and access, deny, view preferences buttons)

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @dasha999999,

    You could force the focus back to the Accept button in the Complianz banner, when it is reopened with the Manage Consent button, by applying a JavaScript snippet. The below script will do that:

    <script>
             document.addEventListener('click', e => {
                if ( e.target.closest(".cmplz-manage-consent") ) {
                    setTimeout(function() {
    			document.querySelector('.cmplz-btn.cmplz-accept').focus();
    		}, 500);
                }
            });
    </script>

    You could add this to your page manually, or with a plugin such as Header Footer Code Manager. Set the “Snippet type” to JavaScript when using the latter.

    Kind regards, Jarno

    Plugin Author Aert Hulsebos

    (@aahulsebos)

    @dasha999999 which screenreader?

    regards Aert

    Thread Starter dasha999999

    (@dasha999999)

    @jarnovos, thank you very much for the function. Unfortunately, it did not make a difference in the screen reader simulator

    Thread Starter dasha999999

    (@dasha999999)

    @aahulsebos, The issue is appearing in the screen reader simulator Silktide

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @dasha999999,

    OK, it’s different from what I initially suspected. It appears that Silktide adds a CSS filter to simulate these effects, but it adds this filter to a <div> with the ID cmplz-cookiebanner-container, which makes the banner disappear.

    If this filter would be added to the <div> with class cmplz-cookiebanner, instead of the aforementioned cmplz-cookiebanner-container, that would make appear with the Silktide effects applied.

    I haven’t been able to find a setting to adjust this in the Silktide tool, though. I would reach out to Silktide to check whether you might be able adjust the classes (such as by manually excluding or including a class) where their filters are being applied.

    Hope it helps!

    Kind regards, Jarno

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cookie Banner Screen reader issue’ is closed to new replies.