Skip to content

Commit

Permalink
feat: set the default root selector to :root
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Nov 29, 2024
1 parent 1a06b8d commit d8d0171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/theme/CSSVariables.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d8d0171

Please sign in to comment.