Accessibility - Keyboard support - Border on mouse click

Hi there,

I need to activate the keyboard support on all my websites because of a new law in the EU.

In the betheme it works fine. Just enable it under theme options and done. What I don´t like about it, is that when I click on a link with a mouse there is that focus border around the link. I only want that border around the link when focusing it with the tab key. How can I disable that border when I click on the link with a mouse?


Thanks!

Comments

  • Hi,

    It is not possible from a technical point of view.

    So there is no option to have it only while switching with Tab key.


    Best regards

  • Why not?

     :focus-visible only becomes active when the user navigates using the keyboard (i.e. “visible focus”).

    :focus alone always takes effect, even when clicking with the mouse

  • Because there is no distinction between clicking with a mouse and switching with the keyboard.


    Best regards

  • I think there is...

    [Links visible only for registered users]

    What is the :focus-visible Pseudo-Class?

    The :focus-visible [Links visible only for registered users] pseudo-class is more specialized. It only applies styles to an element when the browser determines that the focus should be visible. This typically occurs when the user navigates via the keyboard or assistive technologies rather than through mouse or touch input.

  • I have passed it on to the dev team, and I will let you know when I receive information back from them.


    Best regards

  • edited May 2025

    thanks!

    it would be great if you could set both settings in the backend: “focus” and “focus-active”

  • Hi there! Any news on that? Only 4 weeks to go...


    Thanks!

  • We are still testing this.

    I will let you know when I have any more information about this.


    Best regards

  • I have received information from the dev team that your suggestion works as expected and it will be implemented in the upcoming update.


    Best regards

  • sounds great - thanks!

  • edited June 2025

    Hi there! Another question regarding the menu. When I click through the menu with the tab key every submenu will open and the tab will go through it. Is there a way to open the submenu only when someone hits enter on a first level menu link?

  • No, there is no option for that.


    Best regards

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.