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.
This commit is contained in:
Gaël Poupard 2021-01-06 07:14:54 +01:00 committed by GitHub
parent d1a62b47c3
commit acec356c81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 6 deletions

View file

@ -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};
}
}