bete added a comment.

  In T273039#6790844 <https://phabricator.wikimedia.org/T273039#6790844>, 
@Michael wrote:
  
  > Some initial brainstormy thoughts:
  >
  > Pro Component
  >
  > - better abstraction/encapsulation of "internals"
  > - same argument as to why a button is a DS component and not just a set of 
styles
  > - could maybe apply //some// validation on the URL to prevent mistakes like 
`href="javascript:void(0)"`
  > - not providing two ways of doing things: components and classes
  >
  > Pro CSS class
  >
  > - less confusing to translators if it appears in a i18n message
  > - full control over all the possible behavior
  >
  > Ideas for further investigation:
  >
  > - look at what vuetify and other component libraries are doing and try to 
infer their reasoning
  
  thanks for the points you made. I was originally pro css class. but I might 
be coming around to the component side. 
  I couldn't find much info on vuetify but I found another bootstrap library 
here <https://bootstrap-vue.org/docs/components/link>
  
  I think the encapsulation point you made is a solid one. especially, when it 
comes to behavior. e.g things like "href='#'" issue mentioned in the 
documentation.
  also, I think the link is also supposed to support icons (optional), so I 
think cases like that make the case for components instead of css classes

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

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

To: bete
Cc: bete, Michael, Sarai-WMDE, Aklapper, Ladsgroup, Lydia_Pintscher, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Volker_E, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to