mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Started to make the autocomplete theme more bootstrap like
This commit is contained in:
parent
e16aa31ddf
commit
c662dcfcd9
2 changed files with 79 additions and 6 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue