File tree Expand file tree Collapse file tree
packages/components/src/theme Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ export function calculatePreloadStyleContent(): CssVariableStyleContent {
5858
5959/**
6060 * Create a resolver function for calculating the value of a css variable based
61- * on a given element's computed style.
61+ * on a given element's computed style. If the variable resolves to '', we check
62+ * DEFAULT_PRELOAD_DATA_VARIABLES for a default value, and if one does not exist,
63+ * return ''.
6264 * @param el Element to resolve css variables against
6365 */
6466export function createCssVariableResolver (
@@ -396,8 +398,8 @@ export function preloadTheme(): void {
396398}
397399
398400/**
399- * Inline SVGs cannot depend on dynamic CSS variables, so we have to explicitly
400- * change them.
401+ * Inline SVGs cannot depend on dynamic CSS variables, so we have to statically
402+ * update them if we want to change their color .
401403 *
402404 * This function:
403405 * 1. Clears any previous overrides
You can’t perform that action at this time.
0 commit comments