fix(locale-switcher): size flag SVG in closed trigger

The original CSS scoped .flag to .locale-switcher__option only, so the
flag SVG inside the <summary> trigger rendered at 0x0 (intrinsic svg
defaults). Add a .locale-switcher .flag rule so the closed trigger
visibly shows a 24x16 flag.

Playwright recheck: trigger 52x44, flag 24x16 (matches previous inline
flags). 141/141 PHPUnit green.
This commit is contained in:
Hermes
2026-06-04 18:33:32 +00:00
parent 08235b0faf
commit 70691ff242

View File

@@ -1566,6 +1566,15 @@ footer {
outline: none; outline: none;
} }
.locale-switcher .flag {
width: 24px;
height: 16px;
flex: 0 0 24px;
border-radius: 2px;
box-shadow: 0 0 0 1px rgb(0 0 0 / 15%);
display: block;
}
.locale-switcher__option .flag { .locale-switcher__option .flag {
width: 24px; width: 24px;
height: 16px; height: 16px;