Remove anchors from <Link> tags
florence-wolfe opened this issue · 2 comments
florence-wolfe commented
Next13 updated how Link tags work. They no longer allow <a>
tags within the Links and should be removed. The codemod added a legacyBehavior
prop for the components it couldn't remove the anchors automatically.
Hmm, didn't the codemod catch this one? I'm reading the `<a>` tag within link should be just removed. Not sure what's better, because that might come with some regression
Originally posted by @therungg in #33 (comment)
Acceptance criteria
- Identify all
Link
tags with nesteda
tags - Remove the
a
tags as they are automatically created by theLink
- Remove the
legacyBehavior
prop from theLink
if it has been added - Test the links
Nkiriobasi commented
I'll work on this
therungg commented
Fixed by @Nkiriobasi