Comments (3)
Thanks for opening this issue @miken32
The fix has been done for opaque
because we used 100
instead of 100%
within this function and the modification was:
@function opaque($background, $foreground) {
- @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100);
+ @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
}
For tint-color()
and shade-color()
, we call mix()
with the same exact parameter without transforming it; for example:
@function tint-color($color, $weight) {
@return mix(white, $color, $weight);
}
@function shade-color($color, $weight) {
@return mix(black, $color, $weight);
}
My first feeling would be to keep that as-is. It seems more logical to have the exact same type of parameter as Sass itself.
from bootstrap.
from bootstrap.
Yep, based on your example, you'll just have to use % in order to make disappear the warnings:
.foo-warnings {
color: shift-color($success, 48);
background: shift-color($success, -72);
}
.foo-no-warnings {
color: shift-color($success, 48%);
background: shift-color($success, -72%);
}
I’ll leave it to your team to decide whether to change anything or just update documentation.
This is something already mentioned in Customize > Sass > Colors with the following:
.custom-element {
color: tint-color($primary, 10%);
}
.custom-element-2 {
color: shade-color($danger, 30%);
}
But let's suggest a PR to add a .custom-element-3
additional example with shift-color()
usage too: #39435
from bootstrap.
Related Issues (20)
- Small buttons inside d-flex no longer small HOT 4
- is there more to this page?
- Bootstrap 5 `make-col-offset` mixin throws a SASS exception HOT 2
- The "<use xlink:href>" code in the icon-link examples do not work HOT 4
- Failed to execute 'querySelector' on 'Element': '/navbarSupportedContent' is not a valid selector. HOT 3
- Collapse: make it possible to add a root or scope for where to look for triggers
- Some length value variables cannot be `calc()` or `var()` expressions HOT 1
- Add Floating Label or Label Outside on progress bar HOT 5
- Radio Toggle Buttons in Accordion break scrolling HOT 3
- Add a Timeline component. HOT 2
- Instead of selecting in the code box, it is redirecting me to the bottom. (in the code snippet of any component) HOT 5
- Navbar only working in stackblitz demo HOT 3
- Website search bar does not work HOT 1
- Legend not formatted like an label in a vertical form HOT 2
- Attribute 'data-bs-delay' and JS not working on .toast HOT 3
- No Validation Success Icon When Using Saved Browser Data HOT 1
- Found a 'popover' attribute with an invalid value. HOT 2
- Remove unreferenced CSS variable in `bootstrap-reboot*.css` HOT 6
- Padding inconsistent in bootstrap5.3 HOT 3
- Collapse adds an automatic closing behavior
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap.