Skip to content

Commit

Permalink
Improved accessibility by adding an onkeyup event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosIsaris committed Feb 2, 2025
1 parent d23134d commit a2876e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/views/components/laravel-cookies-consent.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@

@if(config('cookies_consent.display_floating_button'))
<div id="scify-cookie-consent-floating-button" class="cookie-button" style="display: none;"
onclick="toggleCookieBanner()">
onclick="toggleCookieBanner()" onkeyup="if (event.key === 'Enter') toggleCookieBanner()" role="button"
tabindex="0">
<img src="{{ asset('vendor/scify/laravel-cookies-consent/cookie.png') }}" alt="Cookie">
</div>
@endif
Expand Down

0 comments on commit a2876e3

Please sign in to comment.