[bug]: Link v2 has no hover color/effect #1525
Labels
issue: bug
Issue reporting a bug
source: design-system
relates to design-system package
status: confirmed
Confirmed by a Strapi Team member or multiple community members
Milestone
What version of strapi-design-system are you using?
strapi 4.15.5
What's Wrong?
Link v2 doesn't show the hover color on rollover
To Reproduce
go to https://design-system-git-main-strapijs.vercel.app/?path=/docs/design-system-components-v2-link--docs
rollover any link, style doesn't get updated on hover
Expected Behaviour
The hover color defined here should be shown on rollover :
design-system/packages/strapi-design-system/src/v2/Link/Link.tsx
Lines 25 to 27 in 85c0cbb
It doesn't show up because it is overridden by the
<Typography>
component inside :design-system/packages/strapi-design-system/src/v2/Link/Link.tsx
Line 50 in 85c0cbb
In Link V1, the hover effect works because the Typography component uses the
currentColor
CSS value :design-system/packages/strapi-design-system/src/Link/Link.tsx
Lines 27 to 30 in 85c0cbb
(Note anyway that putting a Typography component with no prop passing on it makes it impossible to fix this kind of bug on our side, and prevents also customizing the text, for adding ellipsis on it for example. I pray every day that styled component in strapi gets dropped in favor of real css 😂 ...)
The text was updated successfully, but these errors were encountered: