Switch the default div element to a svelte:element with by default div value
Add the restProps inside the component.
Context
In some cases, the VtmnChip can be a link (for apply a filter -> redirect to a new page ...)
Today, if we want to apply a chip with a redirect, we have to wrap it inside a <a> tag like that
<a>
<VtmnChip />
</a>
But this way introduce a issue with a double focus and a bad semantic (link with a button inside)
So that why I propose to move to a `
Checklist
[x] Make sure you are requesting to pull a topic/feature/bugfix branch. Please, don't request directly from your main!
Changes description
Switch the default div element to a
svelte:element
with by defaultdiv
value Add the restProps inside the component.Context
In some cases, the VtmnChip can be a link (for apply a filter -> redirect to a new page ...) Today, if we want to apply a chip with a redirect, we have to wrap it inside a
<a>
tag like thatBut this way introduce a issue with a double focus and a bad semantic (link with a button inside) So that why I propose to move to a `
Checklist
design-system-core-team-design
GitHub team.Does this introduce a breaking change?
Other information