When changing the interface color selector the meta name="theme-color" meta tags are not updated, thus causing sometimes the wrong color on an iPhone notch.
Repro (here on meta)
- enable the interface color selector
- set OS mode to “Light”
- set Discourse interface color selector mode to “Light”
- reload browser
- meta tags look like
<meta name="theme-color" media="all" content="#ffffff">
<meta name="theme-color" media="none" content="#1a1a1a">
which correctly makes iPhone notch the correct color
- switch Discourse interface color selector mode to “Auto”
mediaattributes forlink class="light-scheme"anddark-schemechange correctlytheme-colormeta tags stay the same ← bad- change OS mode to Dark
- notch color does not change

- refresh browser
- HTML meta tags change to
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#1a1a1a">