set $modal-content-color (null value) to --#{$prefix}body-color in _variables.scss #39977
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Identified that $modal-content-color was set to null, which could lead to display issues in React Bootstrap Modals. Changed the value to --#{$prefix}body-color to ensure consistency and correct color application in modal components.
Motivation & Context
The modal text color was defaulting to black inside modals when using the
data-bs-theme="dark"
attribute.(React Bootstrap Modal Component) This was due to thebs-modal-color
variable not being set, originally left as null likely for flexibility before the introduction of dark theme support.Updated
bs-modal-color
to ensure appropriate text color contrasts when the dark theme is applied, avoiding visibility issues and improving user experience with dark modals. This change is essential as the use ofdata-bs-theme="dark"
indicates a requirement for dark mode compatibility, which should logically include readable text colors.Before
After
Type of changes
Checklist
npm run lint
)Live previews
Related issues
react-bootstrap/react-bootstrap#6796