Skip to content
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

Fix link decoration handling in Bootstrap SCSS files #39934

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

layenis
Copy link

@layenis layenis commented Apr 29, 2024

Description

This commit refactors the handling of link decorations in _buttons.scss, _card.scss, _dropdown.scss, _list-group.scss, _nav.scss, _navbar.scss, _pagination.scss files. The text-decoration property is now correctly applied based on the conditions specified by $link-decoration and $link-hover-decoration variables.

Motivation & Context

This change is required to fix issues related to the handling of link decorations in Bootstrap SCSS files introduced by another fix.

The original implementation attempted to optimize the handling of link decorations by excluding the text-decoration property under specific conditions. However, this led to incorrect behavior due to incomplete consideration of all possible values for $link-decoration and $link-hover-decoration.

This fix addresses these issues by ensuring proper handling of the text-decoration property based on specified conditions. Specifically, it ensures that the text-decoration property is correctly applied according to the values of $link-decoration and $link-hover-decoration, thereby resolving visual inconsistencies or unexpected rendering of link decorations.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would change existing functionality)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Live previews

Related issues

Closes #39204

@layenis layenis requested a review from a team as a code owner April 29, 2024 16:35
@XhmikosR
Copy link
Member

XhmikosR commented May 1, 2024

Please make sure lint passes.

@XhmikosR XhmikosR marked this pull request as draft May 1, 2024 11:59
@XhmikosR XhmikosR marked this pull request as ready for review May 6, 2024 05:06
@XhmikosR XhmikosR requested a review from mdo May 6, 2024 05:08
@XhmikosR
Copy link
Member

XhmikosR commented May 6, 2024

@mdo: this changes the look in many places, please have a look (see the docs preview for example).

@XhmikosR
Copy link
Member

XhmikosR commented May 6, 2024

If it's going to be so big of a change, maybe we should postpone it until later.

Copy link
Member

@julien-deramond julien-deramond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting a PR @layenis
I haven't looked at the changes in the code, but there's something off just by looking at the main page of our documentation:
Screenshot 2024-05-06 at 07 13 49
Screenshot 2024-05-06 at 07 13 43
Screenshot 2024-05-06 at 07 13 38

These elements are not meant/designed to be underlined, and should stay as they were by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix $link-decoration and $link-hover-decoration conditionals
3 participants