-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing $primary-text-emphasis-dark variable #38683
Comments
Haven't tested it and IDK if it's something we can actually do; but maybe we could consider moving the content of One other option would be to import @twbs/css-review thoughts? |
Minor updates have always allowed for new features, and most new features come with new files (e.g., adding toasts). I think having these new ones as separate stylesheets is fine. Maybe there's more we can do to document the migration? |
+1 I ran into the same issue. I included the _variables-dark.scss, however, ran into another issue thereafter as shown at #38687. |
This is a breaking change actually. I have to change imports in my project. |
Closing as this isn't a breaking change—minor releases can include new features. This has always been the case in Bootstrap. |
ok, if the bootstrap team disagrees and decides to force the people to update their code, that's fine, it's a very easy fix, but don't deny the facts... In some circumstances, the 5.3.0 update breaks projects running 5.2.3... so yes, it's a Breaking Change because the update 5.3.0 is not safe to apply... a minor change requirement is broken... The Backwards Compatibility. References:
|
- See twbs/bootstrap#38683 for further details
As a backend developer trying to ease my life with these libraries but I end up putting on more work with these versions, modules, and all this crap! |
How isn't this a breaking change? I came here because my build was broken after upgrading. I ended up pinning it to 5.2.3 since importing the dark vars caused other errors and I don't have time to deal with it yet. Had to pin, since npm install on ^5.2.3 still upgrades to 5.3.0. Side note: I can't wait for the dark mode |
The difference here is that the end user can opt into toasts, and not having toasts enabled does not break existing builds. This update broke existing builds, and therefore is a breaking change. It's not about adding the feature, it's about the implementation. To reiterate what was already said - the fix was very straightforward. But shouldn't have been necessary at all. |
yeah this is a pretty breaking change if you ask me.... gonna throw down on that. |
Lol yes, I have to come to github issue tracker every time I deploy my app now. |
Yes, this should be considered for the next release as it breaks our project if we upgrade to v5.3.0 |
For people who don't want to use dark mode: you can also set |
Adding a new, entirely optional, feature is completely fine. |
I share your feelings there mate 👯♂️ |
@tomazartack Me too xD |
This was a real thorn in my side. There was no easy / clear way to fix the problem, and after a simple update. Why this was closed as not a "breaking change" blows my mind. It VERY MUCH is a breaking change, because a simple update broke my entire build. I understand adding functionality, that's great. But if I'm forced to add in a new file, even if I don't intend to use it, I would consider that a breaking change. |
@mdo I'm going to reopen a new ticket with the same description as there seems to be a misunderstanding on what "breaking change" means. It should mean: "if you update this library to a new version, all usages of said library should continue to compile." Before version 5.3.0, the following code compiles: @import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "bootstrap/scss/mixins/breakpoints"; After version 5.3.0, the aforementioned code throws the following error:
If you disagree, can you please explain how you and the rest of the Bootstrap team interprets the phrase "breaking change"? |
The documentation at https://getbootstrap.com/docs/5.2/customize/sass, which is source controlled at bootstrap/site/content/docs/5.2/customize |
@SomnaW |
where and how should I add _variables-dark.scss file? |
Prerequisites
Describe the issue
The problem is your update a minor version (5.2.3 -> 5.3.0) and have a very little Breaking Change
variable
$primary-text-emphasis-dark
not exist on 5.2.3 and is required on 5.3.0The fix is very easy to implement, just need include the new file
variables-dark
on main stylesSome automated process may throw an error, because it's a minor update and it should be backwards compatible.
Reduced test cases
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Microsoft Edge
What version of Bootstrap are you using?
5.3.0
The text was updated successfully, but these errors were encountered: