Skip to content

[link] Links using color="inherit" don't use the proper color for the text decoration #36007

@gentlementlegen

Description

@gentlementlegen

Steps to reproduce 🕹

Link to live example: https://codesandbox.io/s/laughing-dubinsky-fsop9l?file=/src/App.tsx

Current behavior 😯

When using the property color="inherit" on a MuiLink component, the underline color doesn't change on hover. Instead, it remains the same color as the link text.

Expected behavior 🤔

The color should be different, or at least the alpha, as it is the behavior for all the other colors. Or the documentation should show a warning, or a workaround regarding this behavior.

Context 🔦

I am using Alert components in which there is a text link, in the form of a MuiLink. I have to hardcode the color for it to be the same color as the Alert text. On a side note, I could not find inside the palette the colors used for the text inside Alert components.

Your environment 🌎

The environment is the one set by the default Sandbox provided by the official template.

Metadata

Metadata

Assignees

Labels

designThis is about UI or UX design, please involve a designer.scope: linkChanges related to the link.type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions