`.h-*` classes change color of anchor
See original GitHub issuePrerequisites
- I have searched for duplicate or closed issues
- I have validated any HTML to avoid common problems
- I have read the contributing guidelines
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:
- Created a year ago
- Comments:18 (18 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Kopyov I’m aware, captain Obvious
@mdo 👍🏻