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
  • #23865
Closed
Open
Issue created Sep 07, 2017 by Administrator@rootContributor

Shouldn't border-radius classes (rounded-*) replace element's default border-radius?

Created by: jesobreira

Let's say we have a button:

<button class="btn btn-primary">Test</button>

It will be applied the .btn's default border-radius, which is a .25rem radius for every corner:

    border-radius: .25rem;

Let's say we only want the left side corners to be rounded. So we do:

<button class="btn btn-primary rounded-left">Test</button>

Nothing changes and every corner (even from right side) is still rounded. It happens because .rounded-left is:

    border-bottom-left-radius: .25rem;
    border-top-left-radius: .25rem;

Shouldn't we add:

    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;

Onto .rounded-left so it will change the element's default border radius to be controlled by rounded-* classes?

Or it's meant to be done somehow else?

Assignee
Assign to
Time tracking