-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
$link-decoration: underline affects some components #30262
Conversation
Removed .btn redundant text-decoration when dom element is link (a.btn) and $link-decoration variable is set to 'underline'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
I'm wondering if this should be applied to other components. |
I know same behavior exist with pagination elements. |
Removed redundant text-decoration when element is link with .page-link class (a.page-link) and $link-decoration variable is set to 'underline'.
.page-link property ordering
.page-link property ordering
.page-link property ordering
.page-link property ordering
I would prefer an if test to prevent generation of the property if not needed. Something like:
(code not tested) |
It's works good |
check $link-decoration variable for .btn "text-decoration: none"
check $link-decoration variable for .page-link "text-decoration: none"
.nav-link text-decoration: none;
.nav-link attr ordering
text-decoration: none; for .dropdown-item
text-decoration: none; for .list-group-item
Something wrong with this fix now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
this closed #15304 but note that one of the scenarios is still there...alerts with links and strong text (mocked up here by taking one of the alerts in the docs and adding an |
Didn't notice this was added, I've reopened #15304. |
Co-authored-by: Shohei Yoshida <[email protected]> Co-authored-by: Martijn Cuppens <[email protected]>
Co-authored-by: Shohei Yoshida <[email protected]> Co-authored-by: Martijn Cuppens <[email protected]>
Co-authored-by: Shohei Yoshida <[email protected]> Co-authored-by: Martijn Cuppens <[email protected]>
Removed redundant text-decoration when element is link with .btn class (a.btn) and $link-decoration variable is set to 'underline'.
.btn-link also works with this fix, because .btn-link declaration located below.
Upd.
Fixed text-decoration for: