Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11661

Can't escape backticks in code block containing in template literal

$
0
0

Based on this answer I wrapped my single-line backticks with double backticks and my multi-linke backticks with triple backticks:

:style="{'--overlay-color': ```rgba(${ bannerOverlayColor.red },    ${ bannerOverlayColor.green },    ${ bannerOverlayColor.blue }, 0.3)```,  height: ``${ bannerHeight }``,}"

Yet it doesn't seem to work. What am I doing wrong?

Demo


Viewing all articles
Browse latest Browse all 11661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>