fix(options): default choice in the color dropdown bold via a real <b> element
Row 126 marked the default choice with data-default="1" and bolded it via CSS (select option[data-default="1"]), but not every browser applies font-weight to <option> elements, so the entry could still render non-bold. refreshLabels in options.js now wraps the default option's label (including its live hex) in a real <b> element, on top of the CSS rule — bold in every browser. Non-default options stay plain. OPTIONS_JS_TOKEN -> 20261126.9. Verified: render tc=588 (served as options.js?v=20261126.9), jsdom 6/6 incl. new pins (default option contains <b> with its label, color1 has no <b>), export exit 0. Variants not rebuilt (deferred). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
6170efc7a8
commit
920f0347c7
1 changed files with 12 additions and 2 deletions
|
|
@ -43,7 +43,7 @@
|
|||
heuristically cached copy (the file has only Last-Modified/ETag, no Cache-Control).
|
||||
Re-register it with a version token: bump OPTIONS_JS_TOKEN below whenever
|
||||
options/options.js changes, so every browser fetches the new file once. #}
|
||||
{% set OPTIONS_JS_TOKEN = '20261126.8' %}
|
||||
{% set OPTIONS_JS_TOKEN = '20261126.9' %}
|
||||
{{ unregisterScriptFile(optionsPath ~ '/options.js') }}
|
||||
{{ registerScriptFile(optionsPath ~ '/options.js?v=' ~ OPTIONS_JS_TOKEN, 'POS_END') }}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue