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.

`.h-*` classes change color of anchor

See original GitHub issue

Prerequisites

Describe the issue

.h-* classes adds to <a> tags must keep anchor color. Need fix like this:

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-top: 0;
  margin-bottom: .5rem;
  font-weight: 500;
  line-height: 1.2;
}
h1, h2, h3, h4, h5, h6,
.h1:not(a), .h2:not(a), .h3:not(a), .h4:not(a), .h5:not(a), .h6:not(a) {
  color: var(--bs-heading-color);
}

Reduced test cases

<a href="#" class="h5">Link-title</a>
<a href="#" class="link-danger h5">Link-title</a>

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

No response

What version of Bootstrap are you using?

5.2.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

3reactions
WinterSilencecommented, May 16, 2022

@Kopyov I’m aware, captain Obvious

0reactions
WinterSilencecommented, Jul 11, 2022

@mdo 👍🏻

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change the link color in a specific class for a div CSS
Where register is the name of the div in which i want to change the link color. How can i do that? Also...
Read more >
How to change the color of links in HTML? - Tutorialspoint
We can change the color of the link, using style sheet. Example. Following is the example program to change color of the link,...
Read more >
CSS Link Color - HTML Color Codes
Give your website links some color. Learn how to use CSS to color your HTML links with Hex color codes and HTML tags,...
Read more >
Change color of an anchor link - HTML & CSS - SitePoint
One way is to add a class to the tag you want to change, eg <a href="#" class="myclass">Linky</a>. Then apply some CSS as...
Read more >
How to Change Link Colors with CSS - W3docs
Learn about how to change hyperlink colors, inline and external methods with examples. See also how to give different styles to your anchor...
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