Started to make the autocomplete theme more bootstrap like

This commit is contained in:
Jan Böhmer 2024-02-27 23:39:49 +01:00
parent e16aa31ddf
commit c662dcfcd9
2 changed files with 79 additions and 6 deletions

View file

@ -91,9 +91,6 @@ export default class extends Controller {
_enableDarkmode() {
//Add data-bs-theme="dark" to the html tag
document.documentElement.setAttribute('data-bs-theme', 'dark');
//Add data-theme="dark" to the body tag for algolia autocomplete
document.body.setAttribute('data-theme', 'dark');
}
/**
@ -103,9 +100,6 @@ export default class extends Controller {
_disableDarkmode() {
//Set data-bs-theme to light
document.documentElement.setAttribute('data-bs-theme', 'light');
//Add data-theme="dark" to the body tag for algolia autocomplete
document.body.setAttribute('data-theme', 'light');
}