]> 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>
Mon, 21 Sep 2020 11:58:34 +0000 (14:58 +0300)
 Closes #30835 by leaving a comment in the source that the escape-svg() function must have quotes around data URIs.

(cherry picked from commit 849fea5a1ec6a2c39451fefb21a70c6dc9ceac42)

scss/_functions.scss

index eb2471d75368850f773509e081807782c7c93cd5..9c06603150ed3fec95a30d800921923d40f9fa59 100644 (file)
@@ -51,6 +51,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 {