New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.h-*
classes change color of anchor
#36365
Comments
Alternatively you can use
where link color doesn't get overridden by heading color |
@Kopyov I'm aware, captain Obvious |
@WinterSilence So use it like this then. Following your suggestion and for the sake of consistency we would also need to re-use this logic in other elements such as dropdown items, nav links etc. |
That's an interesting suggestion, but I don't think one we'll implement. It adds a good amount of specificity to what's otherwise a set of
There's no need for name calling or attitude either, so please skip posting comments like that :). |
@mdo Current implementation of |
Yes, my bad, they're helpers. |
@mdo I don't think undocumented modification of existing helpers is a good idea, it's BC break for me |
We haven't made any undocumented changes. |
@mdo i can't find this changes in https://github.com/twbs/bootstrap/releases/tag/v5.2.0-beta1 |
There have been no changes to our heading classes in v5.2.0-beta1. I don't know what you're looking for or expecting to see. |
@mdo .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;
color: var(--bs-heading-color);
} in 5.1: .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;
} |
@mdo it's your changes https://github.com/twbs/bootstrap/blame/main/scss/_reboot.scss#L90 |
Sorry, I knew I should've been more specific. There's been no functional change to the headings in v5.2.0-beta1. Heading color has always been a In v5.2.0-beta1, now with CSS variable: Lines 83 to 91 in fca04c0
And in the browser, you can see that it takes no effect because the variable is empty: In v5.1.3, with the Sass variable (also set to Lines 88 to 96 in 1a6fdfa
Sass takes a property with |
@mdo as I'm already say, your changes style of |
@mdo in 5.2: |
Ah, I see it now. Sorry for the back and forth—next time please include actual Codepen demos vs just snippets here :). Or include those kind of screenshots. I should've looked more closely though, too. Let me reopen this and jump back into it for our stable release to see if there's a more logical fix than a slew of more specific |
Ok, no problem. Please, don't close issues, if you don't understand his reasons - ask details. |
@mdo 👍🏻 |
I think this has surfaced again in v5.3.0. Could you please reopen this? @mdo |
@UtkarshVerma Would you mind creating a new issue with a CodePen (or other) to show the problem? We tend not to reopen issues closed by a PR so that future selves are able to read easily the complete history and find stuff in the past. |
@julien-deramond Sure, here is the pen: https://codepen.io/UtkarshVerma/pen/MWzopyq |
are there plans to address this issue and if so could you share an ETA for it? |
Prerequisites
Describe the issue
.h-*
classes adds to<a>
tags must keep anchor color.Need fix like this:
Reduced test cases
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
The text was updated successfully, but these errors were encountered: