Skip to content

Commit

Permalink
Add .seq-root className to custom root containers
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Aug 30, 2024
1 parent b7a73bd commit f0f0783
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/ThemeProvider/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ export const ThemeProvider = (props: PropsWithChildren<ThemeProviderProps>) => {
colors: theme as ColorTokens,
})
}

// Add seq-root class to the root element of custom root
if (props.root) {
rootEl.classList.add('seq-root')
}
}
}, [theme, props.root])

Expand Down

0 comments on commit f0f0783

Please sign in to comment.