text-emphasis-variant mixin should change the anchor's "focused" state as well #16047

Closed
wants to merge 1 commit into from

3 participants

@monoblaine

The ".text-emphasis-variant" mixin does not change the anchor's color when the anchor is in the focused state, causing the link to have the default a:focus color (defined in https://github.com/twbs/bootstrap/blob/master/less/scaffolding.less#L53).

@cvrebert cvrebert added the css label Mar 11, 2015
@cvrebert
Bootstrap member

(Note to team: If approved, this will require rebasing prior to merging so that the commit message can be changed to something more descriptive.)

@monoblaine monoblaine changed the title from Update text-emphasis.less to text-emphasis-variant mixin should change the anchor's "focused" state as well Mar 12, 2015
@mdo mdo commented on the diff Mar 13, 2015
less/mixins/text-emphasis.less
@@ -2,7 +2,7 @@
.text-emphasis-variant(@color) {
color: @color;
- a&:hover {
+ a&:hover, a&:focus {
@mdo
Bootstrap member
mdo added a note Mar 13, 2015

If we did this, this new selector would need to appear on the next line like so:

a&:hover,
a&:focus {
@cvrebert
Bootstrap member
cvrebert added a note Mar 13, 2015

I'm happy to fix that when rebasing this. Do you approve, in principle, of adding the selector?

@mdo
Bootstrap member
mdo added a note Mar 26, 2015

Yeah, seems fine to me. Let's do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@cvrebert cvrebert modified the milestone: v3.3.5 Mar 15, 2015
@cvrebert cvrebert added a commit that closed this pull request Mar 26, 2015
@monoblaine monoblaine Make .text-emphasis-variant adjust :focus color in addition to :hover…
… color

Closes #16047 by merging a tweaked version of it.
ba2d556
@cvrebert cvrebert closed this in ba2d556 Mar 26, 2015
@cvrebert cvrebert referenced this pull request Mar 26, 2015
Closed

v3.3.5 ship list #16074

@patrickhlauke
Bootstrap member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment