Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Buttons: Removed underline from link buttons on hover #166

Closed

Conversation

nashvail
Copy link
Contributor

@nashvail nashvail commented Jun 1, 2016

For issue #165

@jquerybot
Copy link

Thank you for your pull request. It looks like this may be your first contribution to a jQuery Foundation project, if so we need you to sign our Contributor License Agreement (CLA).

📝 Please visit http://contribute.jquery.org/CLA/ to sign.

After you signed, the PR is checked again automatically after a minute. If there's still an issue, please reply here to let us know.


If you've already signed our CLA, it's possible your git author information doesn't match your CLA signature (both your name and email have to match), for more information, check the status of your CLA check.

// To remove the underline that appears when hovering link styled buttons
a.btn:hover,
a.btn.hover {
text-decoration: none;
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't add this here, but as part of the hover related mixin.

@nashvail nashvail force-pushed the 165-remove-hover-underline branch from 3970736 to 587529f Compare June 7, 2016 18:05
@@ -36,6 +36,10 @@
@include btn-hover($btn-colors);
}

&:hover {
text-decoration: none;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

why not just add it to :hover/.hover above ??

Copy link
Contributor

Choose a reason for hiding this comment

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

.hover already inherits the text-decoration: none from the btn mixin up above (line 8). This is dealing with browser defaults overwriting the pseudo class functionality.

@sfrisk sfrisk added this to the Phase One milestone Jun 14, 2016
@sfrisk sfrisk closed this in 4150b60 Jun 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants