]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add a comment for escape-svg function
authorMark Otto <markdotto@gmail.com>
Mon, 14 Sep 2020 22:03:52 +0000 (15:03 -0700)
committerXhmikosR <xhmikosr@gmail.com>
Tue, 15 Sep 2020 05:19:58 +0000 (08:19 +0300)
 Closes #30835 by leaving a comment in the source that the escape-svg() function must have quotes around data URIs.

scss/_functions.scss

index 980efb025879e493f83005f3b289ac9310688c6b..83eea1fbe30acef6d036c32b882f7602fe7830cd 100644 (file)
@@ -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 {