Template talk:Infobox legislature
Template:Talk header Template:WikiProject banner shell Template:Oldtfdfull
Dark mode problem
The number of seats in the image (which shows different parties' seats as colored dots) is always black. This is a problem in dark mode, where the background is very dark grey. mw:Recommendations for night mode compatibility on Wikimedia wikis has some suggested solutions. -- Beland (talk) 18:57, 20 November 2024 (UTC)
- For example, see the black "81" in the infobox on Federal Senate (Brazil). -- Beland (talk) 19:00, 20 November 2024 (UTC)
Fix broken background_color in dark mode
The background_color
parameter is supposed to set the 2px border above and below section headers, but in dark mode this is overridden by border-color: var(--border-color-subtle, #c8ccd1) !important;
under these 2 selectors in the theme CSS:
html.skin-theme-clientpref-night .navbox-title:not(.notheme)
(dark mode selected)
html.skin-theme-clientpref-os .navbox-title:not(.notheme)
(automatic selected)
I believe this can be fixed by replacing all instances of {{{background_color}}}
with {{{background_color}}} !important
in the template, but since this is so widely used I wanted to see what more experienced template editors think before changing it. I can't see it causing any issues unless the theme overriding is intentional and has been discussed somewhere I couldn't find.
This can also be fixed on a page-by-page basis by using !important
in the background_color
param (see here), but since it effects all legislature pages it seems best to fix the template. Jamedeus (talk) 22:24, 5 October 2025 (UTC)