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
  • #37620
Closed
Open
Issue created Dec 09, 2022 by Administrator@rootContributor3 of 3 checklist items completed3/3 checklist items

$input-bg must be a string in latest Bootstrap version

Created by: robinheidrich

Prerequisites

  • I have searched for duplicate or closed issues
  • I have validated any HTML to avoid common problems
  • I have read the contributing guidelines

Describe the issue

I installed the Bootstrap GitHub repository via npm to try darkmode.

If I change the $input-bg in my _variables.scss to #fff I get the following error message:

[plugin:vite:css] [sass] $string: #fff is not a string.
    ╷
132 │   @if str-index($string, "data:image/svg+xml") {
    │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
  node_modules\bootstrap\scss\_functions.scss 132:7            escape-svg()
  node_modules\bootstrap\scss\forms\_form-check.scss 30:32     @import
  node_modules\bootstrap\scss\_forms.scss 5:9                  @import

This is not the case in the current Bootstrap version, so I assume it is a bug.

Reduced test cases

The problem occurs in SCSS therefore I could not create a working test case on CodePen.

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

5.2.3 (main branch)

Assignee
Assign to
Time tracking