Shouldn't this template support an alt parameter to set the text to be rendered on mouse-over (and to be used by screen-readers for accessibility), or can/will …
Shouldn't this template support an alt parameter to set the text to be rendered on mouse-over (and to be used by screen-readers for accessibility), or can/will a screen reader read the button text? —[AlanM1(talk)]— 03:02, 17 March 2013 (UTC)
Can we organise a new style for the button? Provided that we are changing the interface of buttons on Wikipedia to look more coloured, such as like:
Button Or Button
We are moving away from the old style that looked like:
Button
Can we reflect these changes on the button template as well? (Remember that this will be a breaking change to the look of the button!)
Provide your say below! Thank you! DSCrowned(talk) 05:39, 9 July 2015 (UTC)
"This template provides a "clickable button" formatting style for text. This button is not clickable"
Seems contradictory. — Preceding unsigned comment added by 2A01:E35:8A8D:FE80:DC2A:4CC2:F69C:9E36 (talk) 03:26, 13 January 2017 (UTC)
Changing the markup to be semantically correct in a recent edit [1] (<kbd>...</kbd> instead of <span>...</span>) also had the consequence of turning the regular text on the button into monospace font, which doesn't match with real buttons this template is supposed to represent. I've corrected this in the sandbox: [2]. - Evad37 [talk] 04:34, 13 January 2018 (UTC)
In Dec 2017 the Save changes button was renamed Publish changes across all wikis. There was a lack of effective coordination to implement the necessary updates to most of our help pages on en.wiki. I have since tried my best to make up for this. But some changes elude me. Three years ago it was observed that we needed to change the button colour, but I can find no option to set this as a parameter today. Could someone more technical help me get Template:EditOptions to match what we now see in real life editing so that our Help pages like this one look right? If not, I'm just going to delete it and shove in a real screenshot instead. Pinging @DSCrowned: and @Redrose64: who discussed this 3 years ago. Regards, Nick Moyes (talk) 13:29, 26 February 2018 (UTC)
This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
This template set background-color: without setting color: which is an accessibility issue for dark Wikipedia color schemes. Please add color: {{{fgcolor|#000}}}; after background-color: {{{bgcolor|#F2F2F2}}};— Dispenser 03:10, 12 March 2018 (UTC)
This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Please add the following to the top of the page:
<noinclude>{{Hatnote|This template is a non-clickable button. For the most common clickable button, see [[Template:Clickable button 2]].}}</noinclude>
This might help people delving into buttons for the first time more easily figure out where to go. As always, make sure the </noinclude> ends on the same line as the first line of the template code. {{u|Sdkb}} talk 17:30, 17 June 2020 (UTC)
This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Replace background-image: linear-gradient(to bottom, {{{bgcolor1|#FCFCFC}}}, {{{bgcolor2|#E0E0E0}}});
With {{#if:{{{bgcolor|}}}||background-image: linear-gradient(to bottom, {{{bgcolor1|#FCFCFC}}}, {{{bgcolor2|#E0E0E0}}}); }}
Summary: encompass the background-image clause with an if statement to check if there is a bgcolor defined. Currently, defining a bgcolor does not actually change the background color since this clause overrides it.
Rafaelmanman (talk) 18:48, 12 August 2024 (UTC)
Just a note: I've changed the sandbox after I noticed it was registering differently when it should have been the same on the testcases. The change is minimal, simply moving the space at the end of the new version to after the parser function.Rafaelmanman (talk) 16:25, 13 August 2024 (UTC)
This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Kindly merge changes at Template:Button/sandbox for dark mode compatibility. You can see testcases. The colors are slightly different but it shouldn't be a big problem (had to approximate with css tokens). —Matrix(!) {user - talk? - uselesscontributions} 06:45, 28 August 2024 (UTC)
How is this a keyboard input? I think this template should use <div><span>. Sapphaline (talk) 09:29, 6 September 2025 (UTC)
<kbd> used here then? Sapphaline (talk) 17:57, 6 September 2025 (UTC)code element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize.
var element represents a variable. This could be an actual variable in a mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or just be a term used as a placeholder in prose.
samp element represents sample or quoted output from another program or computing system.
kbd element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands).
I noticed that the two colors used for the border which are different colors in light-mode are not different ones in dark-mode.
https://doc.wikimedia.org/codex/latest/design-tokens/color.html lists them as;
I think it'd be better to change one color to something else, i.e. another variable (which has a different color in both light- and dark-mode), or a fixed color with light-dark().
The problem is, that it looks too much like code highlighting;
example code-tagexample syntaxhighlight-tagThe difference, to me, is not distinct enough when they're not used next to each other. Since the border is all the same color it doesn't look like a button.
Maybe the gradient could be more pronounced too?
–joshinils (talk [🇩🇪Disk]) 09:35, 22 February 2026 (UTC)
I use the vector 2022 skin, but for people who use another skin, which may or may not have a dark-mode, the use of var(--…, #fff) means the fallback is always the same, no matter their color-preference.
Because some/most of the color variables can be unavailable in other skins the fallback is likely used.
I started to use light-dark for those cases too, i.e. var(--…, light-dark(#fff, #000)).
–joshinils (talk [🇩🇪Disk]) 09:39, 22 February 2026 (UTC)
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.