It is possible to make the child of a link, instead of the link itself focusable. But is it also possible to follow the parent link on enter? (without javascript) So in the example below I want to go to Google if I hit enter if the div is focussed.
.padded-button {
display: inline-block;
padding: 20px;
cursor: default;
}
.button {
padding: 10px;
background-color: blue;
display: inline-block;
color: #fff;
cursor: pointer;
}
<a href="http://google.com" class="padded-button" tabindex="-1">
<div class="button" tabindex="0">button</div>
</a>
Note: I'm trying to create a button that acts like a regular button if you use it with a mouse / keyboard, but have a bigger tap area for touch.