diff --git a/public/css/style.css b/public/css/style.css index 53c9a61..b3025b8 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -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; } diff --git a/test/run-tests.ts b/test/run-tests.ts index fbbfea8..ec73132 100644 --- a/test/run-tests.ts +++ b/test/run-tests.ts @@ -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'); diff --git a/views/partials/header.ejs b/views/partials/header.ejs index 3ec7724..499030c 100644 --- a/views/partials/header.ejs +++ b/views/partials/header.ejs @@ -76,8 +76,8 @@ <% if (typeof studentId !== 'undefined' && studentId) { %>