swordev / suid

A port of Material-UI (MUI) built with SolidJS.
https://suid.io
MIT License
680 stars 49 forks source link

suid Link with A from @solidjs/router looses the style #153

Closed ricardoalcantara closed 1 year ago

ricardoalcantara commented 1 year ago

When trying to use Link style with A link to navigate it's loosing the style

import { Link } from '@suid/material'
import { A } from '@solidjs/router'

...
<Link underline="none" component={A} href={props.route}>link </Link>
...

When inspecting the element you can see that the sx get some dirty:

<a link="" href="/register" class="MuiTypography-root MuiTypography-body2 MuiLink-root MuiLink-underlineAlways css-879kdd inactive" sx="[object Object],[object Object],[object Object]">Don't have an account? Sign Up</a>
juanrgm commented 1 year ago

Closed via 7c1cec6f50d6dfbadf11cc96a28f01c15732240f.