このコミットが含まれているのは:
2026-07-11 04:53:36 +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)
})
})