Fixing span bug

This commit is contained in:
Michaela Brydon 2023-11-09 13:35:27 -05:00
parent b2c124d2c2
commit dd1cd719d9
2 changed files with 4 additions and 3 deletions

View file

@ -246,8 +246,7 @@ function mapStringToState(str) {
console.warn('Unable to resolve global state data.');
return ''; // if we can't map our string to state data, return an empty string.
}
const valueFromStoreWrapped = `<span>${valueFromStore}</span>`;
const stringWithReplacement = str.replace(match[0], valueFromStoreWrapped);
const stringWithReplacement = str.replace(match[0], valueFromStore);
// If we still have values we need to substitute, call this function again.
if (stringWithReplacement.includes(dynamicStrings.GLOBAL_STATE)) {

View file

@ -1,4 +1,5 @@
$page-side-padding: 1.5rem;
$font-size: 0.875rem;
.page-container-grouped-styles {
> div.main-content-container {
@ -19,13 +20,14 @@ $page-side-padding: 1.5rem;
p {
line-height: 1.5rem;
font-size: $font-size;
&:last-child {
margin-bottom: 0;
}
}
span {
font-size: 0.875rem;
font-size: $font-size;
}
}
}