qwik-ui icon indicating copy to clipboard operation
qwik-ui copied to clipboard

feat(badge) Make the badge more accessible

Open tleperou opened this issue 2 years ago • 3 comments

Summary

Badges shall use by default status role and content flow DOM elements.

Such implementation helps follow the WAI ARIA and HTML practices:

<span class="..." role="status"><Slot /></span>

Concerns

  • we could let integrators customise the role

tleperou avatar May 04 '23 20:05 tleperou

So, this is just replacing the div element with span and adding the role attribute? Appreciate it if you can let me take this one then.

*This will be my first contribution to the Qwik open-source project

fmgono avatar May 17 '23 11:05 fmgono

That's correct @fmgono 👌

tleperou avatar May 17 '23 11:05 tleperou

working on it!

fmgono avatar May 17 '23 11:05 fmgono