Fixing span bug
This commit is contained in:
parent
b2c124d2c2
commit
dd1cd719d9
2 changed files with 4 additions and 3 deletions
|
|
@ -246,8 +246,7 @@ function mapStringToState(str) {
|
||||||
console.warn('Unable to resolve global state data.');
|
console.warn('Unable to resolve global state data.');
|
||||||
return ''; // if we can't map our string to state data, return an empty string.
|
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], valueFromStore);
|
||||||
const stringWithReplacement = str.replace(match[0], valueFromStoreWrapped);
|
|
||||||
|
|
||||||
// If we still have values we need to substitute, call this function again.
|
// If we still have values we need to substitute, call this function again.
|
||||||
if (stringWithReplacement.includes(dynamicStrings.GLOBAL_STATE)) {
|
if (stringWithReplacement.includes(dynamicStrings.GLOBAL_STATE)) {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
$page-side-padding: 1.5rem;
|
$page-side-padding: 1.5rem;
|
||||||
|
$font-size: 0.875rem;
|
||||||
|
|
||||||
.page-container-grouped-styles {
|
.page-container-grouped-styles {
|
||||||
> div.main-content-container {
|
> div.main-content-container {
|
||||||
|
|
@ -19,13 +20,14 @@ $page-side-padding: 1.5rem;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
line-height: 1.5rem;
|
line-height: 1.5rem;
|
||||||
|
font-size: $font-size;
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 0.875rem;
|
font-size: $font-size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue