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
  • #20859
Closed
Open
Issue created Oct 07, 2016 by Administrator@rootContributor

font-size-sm and small-font-size in v4

Created by: bradly

In v4 there are two variables that are named similar and act similar but are different– font-size-sm and small-font-size.

$small-font-size: 80% !default;
$font-size-sm:   .875rem !default;

This was causing some confusion on my team when someone removed font-size: $font-size-sm from an element's css in favor of a .small class in the html. So couple questions:

  1. Is this a bug or as designed?
  2. If it is as designed, is there a desire to change something to make it less confusing.

One change that would allow .small to continue to change things relevant to it's parent but keep text the same as font-size-sm when the parent has a normal height would be to change small-font-size to .875%? Not sure, though.

Anyways, thanks again for all the work on BS4. We've been using it in prod since Jan. and really appreciate all the effort that's gone into making it great.

Assignee
Assign to
Time tracking