← All changes
|
src/Agent/workflows/theme/components/change-site-design/DesignOption.jsx
+4
-0
3.1.3
→
trunk
View file →
| @@ -56,8 +56,9 @@ | ||
| 56 | 56 | el.remove(); |
| 57 | 57 | }); |
| 58 | 58 | |
| 59 | 59 | clone.querySelector('#block-style-variation-styles-inline-css')?.remove(); |
| 60 | + clone.querySelector('#extendify-palette-preview-css')?.remove(); | |
| 60 | 61 | clone.querySelector('#admin-bar-inline-css')?.remove(); |
| 61 | 62 | clone.querySelector('#admin-bar-css')?.remove(); |
| 62 | 63 | clone.querySelector('#extendify-toolbar-reset')?.remove(); |
| 63 | 64 | body.classList.remove('admin-bar'); |
| @@ -65,8 +66,10 @@ | ||
| 65 | 66 | // Inject variation styles |
| 66 | 67 | const styleEl = head.appendChild(document.createElement('style')); |
| 67 | 68 | styleEl.textContent = [ |
| 68 | 69 | styles?.colorAndFontsVariations ?? '', |
| 70 | + // Ties the option on specificity, so it only wins by coming after it. | |
| 71 | + styles?.paletteCss ?? '', | |
| 69 | 72 | styles?.vibes ?? '', |
| 70 | 73 | styles?.blockSupportsCss ?? '', |
| 71 | 74 | ].join('\n'); |
| 72 | 75 | |
| @@ -108,8 +111,9 @@ | ||
| 108 | 111 | [ |
| 109 | 112 | renderedHtml, |
| 110 | 113 | styles?.linkStyles, |
| 111 | 114 | styles?.colorAndFontsVariations, |
| 115 | + styles?.paletteCss, | |
| 112 | 116 | styles?.duotoneTheme, |
| 113 | 117 | styles?.vibes, |
| 114 | 118 | styles?.blockSupportsCss, |
| 115 | 119 | ], |