--#{$prefix}form-invalid-border-color
is compiling as border: 1px solid...
#40831
Closed
3 tasks done
Labels
Prerequisites
Describe the issue
We are using Bootstrap via NPM. When compiling the CSS for our theme, there seems to be something going wrong with the form valid/invalid rules originating in "node_modules/bootstrap/scss/_reboot.scss":
When that compiles, we see the first three compile in the ":root" rules correctly with the "--bs-" prefix. But the last one simply compiles as "border." That same block in the compiled "styles.css" file is:
If I edit that _root.scss file in the node_modules to remove the last "form-invalid-border-color" rule then the same thing happens with the "valid" border color rule and we get a play border rule with the valid (green) color instead.
You can see it here: https://nirhealth.org/ (I've added an inline rule to remove the border that would otherwise show up on the HTML element).
Reduced test cases
Inspect the HTML element on https://nirhealth.org. No border is visible, but you will see it in the list of ":root" styles.
Locked package.json to v5.2.3 and the issue resolved. Bumping up to v5.3.0 and any after brings it back.
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Chrome, Safari, Firefox
What version of Bootstrap are you using?
v5.3.3
The text was updated successfully, but these errors were encountered: