aboutsummaryrefslogtreecommitdiff
path: root/scss/helpers
diff options
context:
space:
mode:
authorGaĆ«l Poupard <[email protected]>2021-01-06 07:14:54 +0100
committerGitHub <[email protected]>2021-01-06 08:14:54 +0200
commitacec356c811e9bcfd7999795336000ce6d609d33 (patch)
treecd6cdc3f25c7000c48ed6b96c6e9e55d4fb8f4b6 /scss/helpers
parentd1a62b47c38d2098577894e9b6340514af07754b (diff)
downloadbootstrap-acec356c811e9bcfd7999795336000ce6d609d33.tar.xz
bootstrap-acec356c811e9bcfd7999795336000ce6d609d33.zip
fix(ratio): missing variable prefix (#32501)
This is the only unprefixed custom property, and its name is very common so I think we'd better prefix it too.
Diffstat (limited to 'scss/helpers')
-rw-r--r--scss/helpers/_ratio.scss4
1 files changed, 2 insertions, 2 deletions
diff --git a/scss/helpers/_ratio.scss b/scss/helpers/_ratio.scss
index 3c0ff330a..2390ee339 100644
--- a/scss/helpers/_ratio.scss
+++ b/scss/helpers/_ratio.scss
@@ -6,7 +6,7 @@
&::before {
display: block;
- padding-top: var(--aspect-ratio);
+ padding-top: var(--#{$variable-prefix}aspect-ratio);
content: "";
}
@@ -21,6 +21,6 @@
@each $key, $ratio in $aspect-ratios {
.ratio-#{$key} {
- --aspect-ratio: #{$ratio};
+ --#{$variable-prefix}aspect-ratio: #{$ratio};
}
}