Skip to content

Commit

Permalink
Change the values ​​of the form checked variables from $form-check-in…
Browse files Browse the repository at this point in the history
…put-checked-bg-color and $form-check-input-checked-border-color to --#{$prefix}form-check-input-checked -bg-color and --#{$prefix}form-check-input-checked-border-color) by adding these to the _root.scss and _form-check.scss file.

Resolve issue #41137. #41137

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Refactoring (non-breaking change)
- [ ] Breaking change (fix or feature that would change existing functionality)

- [x] I have read the [contributing guidelines](https://github.com/twbs/bootstrap/blob/main/.github/CONTRIBUTING.md)
- [x] My code follows the code style of the project _(using `npm run lint`)_
- [ ] My change introduces changes to the documentation
- [ ] I have updated the documentation accordingly
- [ ] I have added tests to cover my changes
- [ ] All new and existing tests passed

  No live preview

  #41137
  • Loading branch information
FrancoJFerreyra committed Jan 18, 2025
1 parent 5210c9b commit 3833ecc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@
--#{$prefix}form-valid-border-color: #{$form-valid-border-color};
--#{$prefix}form-invalid-color: #{$form-invalid-color};
--#{$prefix}form-invalid-border-color: #{$form-invalid-border-color};
--#{$prefix}form-check-input-checked-bg-color: #{$form-check-input-checked-bg-color};
--#{$prefix}form-check-input-checked-border-color: #{$form-check-input-checked-border-color};
// scss-docs-end root-form-validation-variables
}

Expand Down
4 changes: 2 additions & 2 deletions scss/forms/_form-check.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
}

&:checked {
background-color: $form-check-input-checked-bg-color;
border-color: $form-check-input-checked-border-color;
background-color: var(--#{$prefix}form-check-input-checked-bg-color);
border-color: var(--#{$prefix}form-check-input-checked-border-color);

&[type="checkbox"] {
@if $enable-gradients {
Expand Down

0 comments on commit 3833ecc

Please sign in to comment.