inertia icon indicating copy to clipboard operation
inertia copied to clipboard

Fix svelte 4 warning for ARIA role

Open Isaac-alencar opened this issue 1 year ago • 0 comments

#1627

If as is neither 'a' nor 'button', it spreads the { role, tabindex } object. if role is 'button', it won't be included as an attribute on the element, ensuring that the correct role is applied based on the element type specified by the as variable.

Isaac-alencar avatar Mar 28 '24 17:03 Isaac-alencar