NO BUG: Interaction on Element with Keyboard not possible

Browser: newest Chrome and firefox
OS: Windows

i have a icon with an interaction, which loads a popup template. Unfortunately, the interaction on the icon element cannot be activated with the keyboard. I can get the focus on the item with Tab, but the Enter key does not work to open the popup.

Hi @Amplus ,

Please may I know how you set the Interaction?
Bricks do not have any trigger interaction for the keyboard as far as I know.
Is that coming from a third-party plugin?

If it’s a button, please try to set External URL #

Regards,
Jenn

I think this is expected behavior for click handlers and would work the same in “plain” html / css / js. You could (maybe even should?) wrap your icon in a div element (with a custom tag of button) and add the interaction to this element instead. Then it should work as expected.

As you can see in the screnshot you just have to override some default button styles (e.g. the background-color).

Best,

André

1 Like

Then of course it is not a bug!
Many thanks!