aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/abstracts/functions/_encode.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-10-02 18:45:30 +0200
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:14:41 +0100
commitf914ff8376dd91c4f6f8ca149e1cb6becb622d88 (patch)
tree777dc0268eba86721878a715c68f0f09bedb4b18 /src/styles/abstracts/functions/_encode.scss
parentb52b8183ce299b5a2d3c3b2f4f8cb94bb443d746 (diff)
refactor(components): rewrite Link component
* rename `external` prop to `isExternal` * rename `download` prop to `isDownload` * rewrite CSS to reduce code length and complexity * move link styles in Sass placeholders to avoid repeats because of WordPress articles * move NavLink component to molecules
Diffstat (limited to 'src/styles/abstracts/functions/_encode.scss')
-rw-r--r--src/styles/abstracts/functions/_encode.scss2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/styles/abstracts/functions/_encode.scss b/src/styles/abstracts/functions/_encode.scss
index 4350185..388d106 100644
--- a/src/styles/abstracts/functions/_encode.scss
+++ b/src/styles/abstracts/functions/_encode.scss
@@ -4,7 +4,7 @@
/// @param {String} $svg A complete svg (`<svg>...</svg>`).
/// @return The encoded svg, ready to use for background-image.
@function encode-svg($svg) {
- $svg-encoding: (("<", "%3C"), (">", "%3E"), ("#", "%23"));
+ $svg-encoding: (('"', "'"), ("<", "%3C"), (">", "%3E"), ("#", "%23"));
@each $char, $encoded in $svg-encoding {
$svg: fun.str-replace($svg, $char, $encoded);