Docs: change remaining deprecated .link-body-emphasis usages#42573
Open
julien-deramond wants to merge 1 commit into
Open
Docs: change remaining deprecated .link-body-emphasis usages#42573julien-deramond wants to merge 1 commit into
.link-body-emphasis usages#42573julien-deramond wants to merge 1 commit into
Conversation
julien-deramond
commented
Jun 26, 2026
|
|
||
| <article class="blog-post"> | ||
| <h2 class="display-5 link-body-emphasis mb-1">Sample blog post</h2> | ||
| <h2 class="display-5 fg-emphasis-inverse mb-1">Sample blog post</h2> |
Member
Author
There was a problem hiding this comment.
For these titles, since they're not links, I rather used the .fg-* utility.
Contributor
|
This is an improvement, good to remove the deprecated classes. I agree with the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Spotted in #42487.
This PR updates the remaining deprecated
.link-body-emphasisusages.In v5, we had a
.link-body-emphasisutility that no longer exists in v6:#000#fffThere does not seem to be an exact equivalent in v6. The closest match I found is the "Inverse link" utility using
.theme-inverse, as mentioned in the v6 docs at https://v6-dev--twbs-bootstrap.netlify.app/docs/6.0/utilities/link/#colored-linksThis results in:
Would this be the expected replacement, or am I missing a better alternative?
I also considered using the
.fg-*utilities, which seem to achieve the desired colors, but they are not mentioned in the docs. My understanding is that they should probably not be used here anyway, since we do not have matching.underline-{color}utilities to preserve the expected link styling behavior. Is that correct?Live previews