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
  • #36721
Closed
Open
Issue created Jul 12, 2022 by Administrator@rootContributor2 of 2 checklist items completed2/2 checklist items

Consolidate rgb and rgba into single function (rgb)

Created by: SamuelMiller

Prerequisites

  • I have searched for duplicate or closed feature requests
  • I have read the contributing guidelines

Proposal

According to this article (https://dev.to/alvaromontoro/the-ultimate-guide-to-css-colors-2020-edition-1bh1), rather than two separate color functions rgb and rgba (the same for hsl and hsla), the newer simplified format drops the ending alpha "a" suffix and instead uses forward slash "/", merging the two separate functions into one. For example,

/* old notation */
color: rgb(255, 255, 255);
color: rgba(255, 255, 255, 1);

/* new notation */
color: rgb(255 255 255);
color: rgb(255 255 255 / 1);

I suggest Bootstrap consider implementing the newer notation.

Motivation and context

Simplify code. Keep up with the times, man.

Assignee
Assign to
Time tracking