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
  • !38263

Fix `placeholder` shortcode color and background params when 'img' markup

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Julien Déramond requested to merge main-jd-fix-placeholder-color-background-params-for-img-markup into main Mar 17, 2023
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 2

Description

In the placeholder shortcode, when the markup parameter is set to img:

  • Text color is fixed: fill='%23868e96'
  • Background color is fixed: fill='%23dee2e6' So the shortcode is not really dynamic in this case.

OK... it is only used for now in "Object fit" page with fixed colors. But still, I'm suggesting this change 😇

Motivation & Context

Make placeholder shortcode really react to dynamic text and background colors.

Type of changes

  • Refactoring (non-breaking change)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • (N/A) My change introduces changes to the documentation
  • (N/A) I have updated the documentation accordingly
  • (N/A) I have added tests to cover my changes
  • All new and existing tests passed

Live previews

  • https://deploy-preview-38263--twbs-bootstrap.netlify.app/docs/5.3/utilities/object-fit/ (for non-regression testing)
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: main-jd-fix-placeholder-color-background-params-for-img-markup