スマホでのメニュー表示デザイン・バグ (#405) #408

マージ済み
みてるぞ が 3 個のコミットを feature/405 から main へマージ 2026-07-11 05:02:24 +09:00
コミット 4e103ca1d9 の変更だけを表示してゐます - すべてのコミットを表示
+19
ファイルの表示
@@ -0,0 +1,19 @@
import { readFileSync } from 'node:fs'
import { resolve } from 'node:path'
import { describe, expect, it } from 'vitest'
const indexCss = readFileSync (
resolve (process.cwd (), 'src/index.css'),
'utf8')
const compactIndexCss = indexCss.replace (/\s+/g, ' ')
const mobileSubmenuRule = '.top-nav-mobile-menu .top-nav-submenu {'
+ ' background: var(--top-nav-mobile-active-bg); }'
describe ('TopNav mobile submenu colours', () => {
it ('uses the mobile active background for an expanded submenu', () => {
expect (compactIndexCss).toContain (mobileSubmenuRule)
})
})