Michael added a comment.

  In T273039#6799559 <https://phabricator.wikimedia.org/T273039#6799559>, 
@Sarai-WMDE wrote:
  
  > Regarding the component approach, and related to the second criteria: how 
can we make sure the component is embeddable? Meaning, that it can inherit the 
styles of surrounding text when used inline. (I believe this could probably be 
a variant or a prop, but just wanted to make sure we keep this in mind)
  
  That depends on the specific declarations. For example a `font-size` of `1em` 
will exactly use the font-size of the surrounding `<p>`. Also, `line-height` 
could either be plainly not defined or be set to `line-height: inherit;`. 
Similarly, for `font-family`, etc.
  
  On the other hand, there might be cases where we don't want inheritance, for 
example `color: #3366cc;` will use exactly that color,and in that case this is 
what we almost always want.
  
  We might be able to gain some insights by considering the "embedded" link the 
default and try to think about situations where it is not embedded. Maybe 
something like a "Next" link when flipping through some pagination?

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

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

To: bete, Michael
Cc: ItamarWMDE, 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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to