https://bugzilla.wikimedia.org/show_bug.cgi?id=48184

Matthew Flaschen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #4 from Matthew Flaschen <[email protected]> ---
(In reply to Jon from comment #3)
> Oh I see...
> Should it be used in this way..? This is what mw-ui-anchor is for?
> 
> <a class="mw-ui-anchor mw-ui-constructive">test me</a>

That is not a button, it's just a colored anchor.

> Isn't that a limitation of wikitext markup that you can't add custom classes
> to links? I think that is the issue here.. we shouldn't be encouraging sub
> optimal markup such as
> <div class="mw-ui-button>
> <a>
> </div>
> in my opinion..
>
> <a class="mw-ui-button"></a> should be the only way to use it.

I disagree.

We should encourage the most concise markup for a button that works in
wikitext.

Remember, this use case is the *only* reason
(https://gerrit.wikimedia.org/r/#/c/114085/) mediawiki.ui.button is added by
default.

Anything else (extension, gadget, user script) can use addModuleStyles (as
needed, rather than global as it is now) or mw.loader.using.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to