The <open-heart> element is defined as a custom element. The JavaScript that defines the custom element sets a role=button attribute on the element, which is likely the most relevant property for accessibility here. The code also sets aria-busy and aria-pressed accessibility attributes.
Seems cool. I wonder about accessibility, I don’t know enough to really tell.
The
<open-heart>
element is defined as a custom element. The JavaScript that defines the custom element sets arole=button
attribute on the element, which is likely the most relevant property for accessibility here. The code also setsaria-busy
andaria-pressed
accessibility attributes.