aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2020-09-14 15:03:52 -0700
committerXhmikosR <[email protected]>2020-09-15 08:19:58 +0300
commit849fea5a1ec6a2c39451fefb21a70c6dc9ceac42 (patch)
treeae67cb6810b023386429c27f736c55ea369b7e61
parent5f5f1cbcff31d970f8f63a01757e5c916f77727a (diff)
downloadbootstrap-849fea5a1ec6a2c39451fefb21a70c6dc9ceac42.tar.xz
bootstrap-849fea5a1ec6a2c39451fefb21a70c6dc9ceac42.zip
Add a comment for escape-svg function
Closes #30835 by leaving a comment in the source that the escape-svg() function must have quotes around data URIs.
-rw-r--r--scss/_functions.scss3
1 files changed, 3 insertions, 0 deletions
diff --git a/scss/_functions.scss b/scss/_functions.scss
index 980efb025..83eea1fbe 100644
--- a/scss/_functions.scss
+++ b/scss/_functions.scss
@@ -74,6 +74,9 @@
}
// See https://codepen.io/kevinweber/pen/dXWoRw
+//
+// Requires the use of quotes around data URIs.
+
@function escape-svg($string) {
@if str-index($string, "data:image/svg+xml") {
@each $char, $encoded in $escaped-characters {