I set it to primary but the hover cannot override it to turn into white text when hover. It state rule is overriden by .link-primary. This class get added when I select primary color for this one button but hover class is unable to override it with white text.
I went back to beginning and I can’t see what I may have missed. I do noticed there are some new settings in option that wasn’t on the video so I assume Bootstrap Studio setting had some changed made to it on latest version etc.
Did it mentioned to do this in the tutorial? If so then I completely overlooked this in the video.
I’ve done web development for years and you are correct that this would probably fix it but I purchased Bootstrap Studio to compare it with my Pinegrow editor in web development.
I am always looking for better tool to use in my web development especially when more time is saved by drag n drop then selecting options for each components.
I’m not sure haha, I didn’t re-watch it. I was just trying to help solve your problem using the solution that I would probably use
There’s probably an easier way to do this in BSS but I’d have to look on my desktop. Maybe someone else will have a solution for you, in the mean time.
I haven’t the time to go through this entire video to see what’s going on here, but I can tell you that setting the button color to primary via the UI is absolutely going to override the color set in the CSS in your image (which is confirmed by the message the software is giving you about the rule being overridden by the .link-primary class), which has the following CSS…
As you can see, the !important ensures this rule overrides your color: white; rule
My question is, why would you want to the text to turn white when you hover over it seeing as how it’s on a white background? If it turns white, it will effectively disappear! I presume that’s why the tutorial has you set the color to Primary via the UI. So it’s one shade of blue normally, and a slightly darker shade of blue on focus and hover.
As others have suggested, adding !important to the value should fix it. The issue comes from the Bootstrap version used in the app. The video was made when the latest Bootstrap version was 5.1.3, while the currently included version is 5.2.0.
In Boostrap 5.1.3 the link-[color] classes didn’t use !important:
No need for me to watch the video now that Gabby has explained the issue.
For whatever reason, Bootstrap 5.2 is using !important on the color rules (which I don’t particularly agree with) but that’s how they’ve chosen to setup the framework.
During the time tutorial was created, it was based on previous version of Bootstrap where the color rule was different than it is in 5.X. I was working on a new tutorial and found the other tutorial with the same thing so I had to override it with !important.
But feel kinda of strange overriding !important with another !important thou lol …