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
  • Merge requests
  • !11518

Remove color: inherit from headings

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/dzwillia/text-color-precendence into master Nov 18, 2013
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 2

Created by: dzwillia

Heading classes (.h1, .h2, etc.) override default color styling for anchor tags as well as other well-defined classes for color styling (.text-success, .text-danger, etc.).

The following code snippet when rendered would appear with @text-color (instead of @link-color) until hovered over at which point it would appear with @link-hover-color color.

<a href="#" class="h1">Heading 1</a>

It should be noted that this styling was correct shortly ago in BS 3.0.0. I have included two examples to document the issue:

Bootstrap 3.0.0 (styled correctly): http://jsfiddle.net/MYrV4/3/ Bootstrap 3.0.2 (styled incorrectly): http://jsfiddle.net/5g7WH/2/

Heading classes (which are simply meant to emulate their respective heading sizes) should not affect the color of anchor elements nor elements with the .text-* classes.

While related to Issue #10202 (closed), I view this to be a far more grievous issue than it as it is more far-reaching (affecting styling all the way down to basic anchor tag styling).

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/dzwillia/text-color-precendence