question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Anchor component should have a prop to toggle underline

See original GitHub issue

Anchor component has variants link and text but sometimes you don’t want the default text-decoration: underline when you are using link. Or vice versa, you are using text and may want to have it.

As of now, you need to manually override the styling with !important, which is an anti-pattern.

An ad hoc prop could be useful for that.

Usage example, including component/hook API

No response

Possible implementation – describe how the feature can be implemented

No response

Do you want to contribute this feature and create a pull request

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rtivitalcommented, Jan 25, 2022

I’ve accidentally merged this into dev, so I guess it will be released only in about a month

1reaction
rtivitalcommented, Jan 24, 2022

Yep, it should be in Text

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't style anchor link when used in shadow false, but scoped ...
Configure it to shadow:false scoped:true and use a styleUrl OR styleUrls . Use the <stencil-route-link> component as is, url, and other props ......
Read more >
How to get rid of underline for Link component of React Router?
you need to pass the route path in the 'to' prop of the "MenuItem" (which will be passed down to the Link component)....
Read more >
How to handle navigation in your app with React Router Link
First, we need to adjust the campaign page. We'll use the useLocation hook to match the URL to the query. We'll define a...
Read more >
text-decoration - CSS: Cascading Style Sheets - MDN Web Docs
The style rule em { text-decoration: none; } would not cause any change; the entire paragraph would still be underlined.
Read more >
Breaking changes in v5, part two: core components - Material UI
The color prop has no longer any effect in dark mode. The app bar uses the ... You can find out more details...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found