From d8d01712329b79725e85ecd54510bb0c5cc10197 Mon Sep 17 00:00:00 2001 From: cheton Date: Fri, 29 Nov 2024 18:24:05 +0800 Subject: [PATCH] feat: set the default root selector to `:root` --- packages/react/src/theme/CSSVariables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/theme/CSSVariables.js b/packages/react/src/theme/CSSVariables.js index f14f00e18d..30ea9f72d7 100644 --- a/packages/react/src/theme/CSSVariables.js +++ b/packages/react/src/theme/CSSVariables.js @@ -3,7 +3,7 @@ import { ensureArray, ensurePlainObject } from 'ensure-type'; import React, { useCallback } from 'react'; const CSSVariables = ({ - root = [':root', ':host'], + root = [':root'], }) => { const styles = useCallback((theme) => { const cssVariables = ensurePlainObject(theme?.cssVariables);