редизайн кнопок 1st version
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
const isDark = () => document.documentElement.getAttribute('data-theme') !== 'light';
|
||||
|
||||
const btn = document.createElement('button');
|
||||
btn.className = 'theme-toggle';
|
||||
btn.className = 'btn btn-icon-md btn-secondary theme-toggle';
|
||||
btn.setAttribute('aria-label', 'Переключить тему');
|
||||
btn.innerHTML = isDark() ? moonSVG : sunSVG;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user