Lucas_Werkmeister_WMDE added a comment.

  In T230326#5460245 <https://phabricator.wikimedia.org/T230326#5460245>, 
@Michael wrote:
  
  > My understanding was that `ButtonWidget` 
<https://doc.wikimedia.org/oojs-ui/master/demos/?page=widgets&theme=wikimediaui&direction=ltr&platform=desktop#ButtonWidget-normal>
 uses an `<a tabindex="0">` as the clickable element, wrapped in a `<span>` for 
styling purposes. But I think it is quite possible that I missed something or 
misunderstood some functionality. How would I change the tag name?
  
  The `tagName` config property (or static property) controls the tag name of 
the surrounding `<span>`; you can also pass in a custom `$button` in the config 
to override the default `<a>`. (The `tagName` is processed by the `Element` 
base class, the `$button` by the `ButtonElement` mixin.)

TASK DETAIL
  https://phabricator.wikimedia.org/T230326

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Matthias_Geisler_WMDE, Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Lydia_Pintscher, Charlie_WMDE, Jakob_WMDE, Michael, 
Aklapper, Pablo-WMDE, Hook696, Daryl-TTMG, RomaAmorRoma, 0010318400, 
E.S.A-Sheild, darthmon_wmde, joker88john, DannyS712, CucyNoiD, Nandana, 
NebulousIris, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, 
Cpaulf30, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, Lordiis, 
GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, 
LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Wikidata-bugs, 
aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to