Change emojis to chars

This commit is contained in:
tyuXX 2026-11-09 22:07:19 +00:00
parent c6be7d88f9
commit 111e8cead4
3 changed files with 10 additions and 2 deletions

View file

@ -271,6 +271,12 @@ code {
border-color: var(--border-strong);
}
.theme-icon {
font-size: 0.75rem;
font-weight: 700;
line-height: 1;
}
.theme-icon-sun {
display: none;
}

View file

@ -1044,6 +1044,8 @@ async function runAllTests() {
assert(headerContent.includes('meta name="color-scheme" content="light dark"'), 'header.ejs must declare color-scheme meta tag');
assert(headerContent.includes('id="themeToggleBtn"'), 'header.ejs must include themeToggleBtn');
assert(headerContent.includes('theme-icon-sun" aria-hidden="true">L<'), 'header.ejs must use L for light theme indicator');
assert(headerContent.includes('theme-icon-moon" aria-hidden="true">D<'), 'header.ejs must use D for dark theme indicator');
assert(headerContent.includes('class="lang-switcher"'), 'header.ejs must include TR | EN language switcher');
assert(headerContent.includes('window.BeKulturDict'), 'header.ejs must expose client-side i18n dictionary');

View file

@ -76,8 +76,8 @@
<!-- Theme Toggle Button -->
<button type="button" id="themeToggleBtn" class="btn-icon-toggle" title="<%= typeof t === 'function' ? t('header.themeToggle') : 'Tema Değiştir' %>" aria-label="<%= typeof t === 'function' ? t('header.themeToggle') : 'Tema Değiştir' %>">
<span class="theme-icon theme-icon-sun" aria-hidden="true">☀️</span>
<span class="theme-icon theme-icon-moon" aria-hidden="true">🌙</span>
<span class="theme-icon theme-icon-sun" aria-hidden="true">L</span>
<span class="theme-icon theme-icon-moon" aria-hidden="true">D</span>
</button>
<% if (typeof studentId !== 'undefined' && studentId) { %>