Skip to content

Commit e25c52b

Browse files
committed
fix: use vue's [data-v-app] to determin if it is the root theme provider
1 parent 73b7d9f commit e25c52b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/ThemeProvider.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ provideThemeContext({
4848
<TooltipProvider>
4949
<Primitive
5050
class="ui-root"
51-
data-is-root-theme
5251
:data-accent-color="props.accentColor"
5352
:data-gray-color="props.grayColor"
5453
:data-radius="props.radius"
@@ -62,7 +61,7 @@ provideThemeContext({
6261
</template>
6362

6463
<style>
65-
.ui-root[data-is-root-theme] {
64+
[data-v-app] > .ui-root {
6665
position: relative;
6766
z-index: 0;
6867
}

0 commit comments

Comments
 (0)