Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #18222
Closed
Open
Issue created Nov 11, 2015 by Administrator@rootContributor

Inherited color of link in text emphasis.

Created by: TMMC

While you give to any element color emphasis (for example .text-primary) it should IMHO inherit the color and lightly change it + change it more on hover/focus. But does not. There is a mixin in text-emphasis.less for focused and hovered links and it does not work.

.text-emphasis-variant(@color) {
  color: @color;
  a&:hover,  // mistake: 'a&'
  a&:focus { // mistake: 'a&'
    color: darken(@color, 10%);
  }
}

My guess is it should be:

.text-emphasis-variant(@color) {
  color: @color;
  a {
    color: darken(@color, 10%); // let's say
      &:hover,  
      &:focus {
        color: darken(@color, 20%); // let's say
      }
  }
}
Assignee
Assign to
Time tracking