MediaWiki talk:Gadget-ReferenceTooltips.js: Difference between revisions

Content deleted Content added
Line 204:
</syntaxhighlight> [[User:JWBTH|Jack who built the house]] ([[User:JWBTH|talk]]) 20:43, 4 February 2024 (UTC)
: {{done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 21:34, 4 February 2024 (UTC)
 
== Update request 9 July 2024 ==
 
{{editprotected}}
Please update the JS and CSS parts of the gadget:
* Update [[MediaWiki:Gadget-ReferenceTooltips.js]] from [[User:JWBTH/Gadget-ReferenceTooltips.js]] ([https://en.wikipedia.org/wiki/Special:ComparePages?page1=MediaWiki%3AGadget-ReferenceTooltips.js&rev1=&page2=User%3AJWBTH%2FGadget-ReferenceTooltips.js&rev2=&action=&unhide= diff])
* Update [[MediaWiki:Gadget-ReferenceTooltips.css]] from [[User:JWBTH/Gadget-ReferenceTooltips.css]] ([https://en.wikipedia.org/wiki/Special:ComparePages?page1=MediaWiki%3AGadget-ReferenceTooltips.css&rev1=&page2=User%3AJWBTH%2FGadget-ReferenceTooltips.css&rev2=&action=&unhide= diff])
 
Changes:
* Respect the text size the user has in the "Appearance" section ({{myprefs|Beta|check=Accessibility for Reading (Vector 2022)}}) by using the <code>--font-size-medium</code> CSS variable and making the font size and several related properties relative (in <code>em</code>) instead of absolute (in <code>px</code>).
* Encode several constants to calculate distances based on them instead of relying on [[magic number (programming)|magic number]]s.
* Use <code><nowiki><a></nowiki></code> element for the settings link instead of <code><nowiki><div></nowiki></code> as more semantically appropriate.
* Use [https://doc.wikimedia.org/codex/latest/design-tokens/overview.html Codex] design tokens in several places (<code>box-shadow</code>, icon size)
* Fixe the appearance of the tooltip tail (anchor) in Blink browsers in Windows on bigger system font sizes.
 
Ping me if there are any problems. [[User:JWBTH|Jack who built the house]] ([[User:JWBTH|talk]]) 08:40, 9 July 2024 (UTC)