nuxt-modules / color-mode

Dark and Light mode with auto detection made easy with Nuxt 🌗
https://color-mode.nuxtjs.org
MIT License
1.12k stars 112 forks source link

ColorMode removes lang/dir attributes from html tag #172

Open joezak11 opened 2 years ago

joezak11 commented 2 years ago

Version

@nuxtjs/color-mode: 3.1.8 nuxt: 3.0.0-rc.12

Reproduction Link

Steps to reproduce

app.vue:

<template>
    <Html dir="rtl">
        <!-- Whatever -->
    </Html>
</template>

What is Expected?

the dir attribute to persist

What is actually happening?

any attributes on html tag are removed when colormode loads and are replaced with colormode's attributes