Page Projets : copie URL dans le menu ⋯ + refonte thème barre Fusion/Spark (#44, #45)
CI / test (push) Failing after 3s
CI / test (push) Failing after 3s
This commit is contained in:
+2
-2
@@ -46,10 +46,10 @@
|
|||||||
l'en-tête, lui, n'avait qu'un texte. */
|
l'en-tête, lui, n'avait qu'un texte. */
|
||||||
var ico = themeBtn.querySelector('[data-theme-ico]');
|
var ico = themeBtn.querySelector('[data-theme-ico]');
|
||||||
var lbl = themeBtn.querySelector('[data-theme-label]');
|
var lbl = themeBtn.querySelector('[data-theme-label]');
|
||||||
if (ico) ico.textContent = light ? '🌙' : '☀️';
|
if (ico) ico.textContent = light ? '☾' : '☀';
|
||||||
if (lbl) lbl.textContent = light ? 'Mode sombre' : 'Mode clair';
|
if (lbl) lbl.textContent = light ? 'Mode sombre' : 'Mode clair';
|
||||||
if (!ico && !lbl) {
|
if (!ico && !lbl) {
|
||||||
themeBtn.textContent = light ? '🌙 Mode sombre' : '☀️ Mode clair';
|
themeBtn.textContent = light ? '☾ Mode sombre' : '☀ Mode clair';
|
||||||
}
|
}
|
||||||
themeBtn.setAttribute('aria-pressed', light ? 'true' : 'false');
|
themeBtn.setAttribute('aria-pressed', light ? 'true' : 'false');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user