Closed willtpwise closed 5 years ago
You don't need to pass an explicit role
attribute. HTML button has that by default. You do need it in the case of unsemantic tags like a div
, but the whole idea of this PR is to use a button
, dismissing that completely. Shameless plug: I don't think this is an actively maintained project, so I created a more advanced component with better encapsulation and full control over HTML and CSS implementation.
I solved wrapping the fake button into a real button but is necessary trigger the click event to the non button element... is not the best way.
I recently added this feature (i did'nt see your PR) and a click event emiter too.
The output should be a
<button>
element, instead of a<div>
.Current
Proposed