Module talk:Message box

Edit request 8 May 2024
Description of suggested change: Add CSS styling for night mode to the ombox styles.css. Diff: Andumé (talk) 23:45, 8 May 2024 (UTC)


 * Another option with a darker/higher contrast/more consistent color scheme would be this:


 * Andumé (talk) 17:37, 11 May 2024 (UTC)
 * Red information icon with gradient background.svg Not done: These diffs introduce duplicate styles and more color styles than are necessary to deal with the issue of dark mode. Thanks for throwing something up though, I will take a look. Izno (talk) 04:06, 21 May 2024 (UTC)
 * @I Am Andumé For the first, you copy-pasted the full .ombox definition in the context of the color CSS, which is surely not intended. For the second, you typoed the prefers-color-scheme dark selector (it should be -os, not -night), made multiple separate blocks for the prefers-color scheme (perhaps to show that you were consistent between -dark and -os settings, IDK), and more concerningly you strayed to changing the background rather than changing just the border. We should do something which matches the earlier rules in what is being set, which for most of these cases is just the border. Izno (talk) 04:22, 21 May 2024 (UTC)
 * Actually taking a look what happens when the background is dark, I don't think we need to change the border colors at all and can leave those the same as the base colors. That simplifies maintenance tremendously. We need to pick a good dark color for the typical background, as well as the speedy color. Izno (talk) 04:37, 21 May 2024 (UTC)
 * I put those in the official sandbox and loaded that so now you can see them on Template:Ombox/testcases. Izno (talk) 04:55, 21 May 2024 (UTC)
 * Thanks for taking a look at my request. Here are a few things I'd like to mention:
 * The reason I copy-pasted the full .ombox definition, instead of just the styling that needed to be different in night mode was because I was afraid the other CSS would not be applied to the night mode version of the template if I omitted it.
 * That was a typo, yes.
 * I made separate block for the prefers-color-scheme as I was not yet aware it was possible to combine it all into one.
 * Changing the background color was necessary as otherwise it would have been very bright (as you seem to have noticed). Also, without either defining color or changing background color, the text would not have been readable.
 * Anyways, I wrote this CSS quite a while ago, so I was very inexperienced at the time, which explains a lot of the mistakes I made. Andumé (talk) 05:07, 21 May 2024 (UTC)
 * No worries. Yes, it was necessary to change the background, but only for the broad .ombox and for the more narrow .ombox-speedy. You included background colors elsewhere. Which can reasonably be explained by your inexperience with CSS as you explained. Izno (talk) 05:16, 21 May 2024 (UTC)
 * iirc, the addition of the other background colors was also because I first worked on the cmbox CSS, and then reused much of the styling for ombox. Andumé (talk) 05:36, 21 May 2024 (UTC)
 * That would explain the blue! Izno (talk) 05:54, 21 May 2024 (UTC)
 * That would explain the blue! Izno (talk) 05:54, 21 May 2024 (UTC)

Protected edit request on 14 June 2024
Please add: to Module:Message box/ombox.css as a workaround for T367463, similar to tmbox's Special:Diff/1228936760. I've applied the change to the sandbox (Special:Diff/1228972046/1229011205), but looking at testcases won't be helpful, because the sandbox template styles affect both live and sandbox versions of the template. Instead, compare Template:Wikibreak/testcases (uses live template styles as of Special:Diff/1229011841) and Template:Sockpuppet/testcases (uses sandbox styles as of Special:Diff/1229011265). See also Village pump (technical). —⁠andrybak (talk) 10:41, 14 June 2024 (UTC)


 * Ping for awareness: User:Jon (WMF). —⁠andrybak (talk) 13:08, 14 June 2024 (UTC)
 * ✅ — Preceding unsigned comment added by Jon (WMF) (talk • contribs) 15:59, 14 June 2024 (UTC)

Protected edit request on 25 June 2024
Change fmbox-warning background-color to #300 in night mode for consistency with other mboxes.

Diff: Andumé (talk) 04:52, 25 June 2024 (UTC)
 * No opinion on the change request, but presumably if you want to change the bg color, then you'd want to change the comment to match? Mathglot (talk) 18:09, 25 June 2024 (UTC)
 * That would probably be a good idea, although those comments are often inaccurate anyway, especially on Module:Message box/cmbox.css. Andumé (talk) 21:30, 25 June 2024 (UTC)
 * Shouldn't be inaccurate? The only one I can think of is the blue of one of the specific cmboxes. IznoPublic (talk) 06:48, 8 July 2024 (UTC)
 * The specific inaccuracy I was thinking of was the cmbox.css's night mode styles refer to #300 as "pink", although that is not the only one. Andumé  (talk) 20:29, 14 July 2024 (UTC)
 * And in fact cmbox makes no claim about similar hue/saturation that I can see?? Please ensure you're being factual. IznoPublic (talk) 06:50, 8 July 2024 (UTC)
 * The light colors are also not consistent IIRC? Which specific other dark box are you trying to make this consistent with and what is the light color for that box? IznoPublic (talk) 06:48, 8 July 2024 (UTC)
 * What I meant with "consistency" was that cmbox's night mode styles (cmbox being the only standard mbox to use colorful backgrounds afaik), for colored backgrounds, use the same background color as the light mode styles, except with a lightness of 10. Also, cmbox-delete and cmbox-speedy both have the same background in light mode as fmbox-warning, and they use #300 as background-color in night mode. I hope this makes sense. Andumé (talk) 20:41, 14 July 2024 (UTC)
 * Please don't reactivate the edit request while discussion is ongoing. I'll review this later. Izno (talk) 23:27, 14 July 2024 (UTC)

Edit request 28 June 2024
Description of suggested change: I propose changing transparent to #FFFFFF (white) on Module:Message box/fmbox.css because some edit filters use white backgrounds for friendly or standard warning messages. If transparent was used here, then it would not appear white, rather light-red seeping thorough the warning message (this shows a warning box covering the edit filter warning or disallow message). The same also goes for disallow messages that use.

Diff:

Anybody can comment about the proposed change I suggested, thank you. Codename Noreste 🤔  Talk  19:10, 28 June 2024 (UTC)
 * Two things: fmbox should not be embedded in other (fm)boxes, making this change unnecessary here, and any change along this dimension should be sensitive to dark mode, and that isn't. IznoPublic (talk) 12:47, 8 July 2024 (UTC)