@henriquepetrelli/hp-design-system 1.1.15 → 1.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1426,9 +1426,9 @@ const emit = __emit;
1426
1426
  const isDarkMode = ref(localStorage.getItem('theme') === 'dark');
1427
1427
 
1428
1428
  const applyTheme = (isDark) => {
1429
- document.documentElement.classList.toggle('dark', isDark);
1430
- document.documentElement.classList.toggle('light', !isDark);
1431
- localStorage.setItem('theme', isDark ? 'dark' : 'light');
1429
+ const theme = isDark ? 'dark' : 'light';
1430
+ document.documentElement.setAttribute('data-theme', theme);
1431
+ localStorage.setItem('theme', theme);
1432
1432
  };
1433
1433
 
1434
1434
  const toggleTheme = () => {
@@ -1507,7 +1507,7 @@ return (_ctx, _cache) => {
1507
1507
  }
1508
1508
 
1509
1509
  };
1510
- const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$4, [['__scopeId',"data-v-e4250caa"]]);
1510
+ const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$4, [['__scopeId',"data-v-8b3eb905"]]);
1511
1511
 
1512
1512
  const _hoisted_1$3 = { class: "input__fieldset" };
1513
1513
  const _hoisted_2$3 = {