Elffuss BraidHub

utopia-ia/elffuss-code public

Extensions: the unsaved-changes dot under a light theme follows the tab's new close button

A conflict git could not see. 325511c made the unsaved dot inherit the
tab's text colour under extension themes, through `#tabs-bar .tab b.dirty`;
6de16ab turned that <b> into a <button class="tab-x">, which code.css
paints with the IDE's light foreground. With both, the rule matched nothing
and the dot was nearly invisible again on light themes. The rule now
targets the button.

tests/extensions.mjs looked for the old <b> and read null; it reads the button
now: contrast with a light theme back to about 21:1 (AA asks 4.5:1).
Changesete5e3d9f720685aa62e72177b3a1a0fd7e6007a49ef22f71bb2421bdac5181d4c
AuthorKikoCis <kikocisneros@gmail.com> · 2026-10-11 15:40 +02:00
CommitterKikoCis <kikocisneros@gmail.com> · 2026-10-11 15:40 +02:00
Parents88d1ced5b041

Browse the files at this changeset

2 files changed

modified tests/extensions.mjs +1 −1
@@ -194,7 +194,7 @@
194194 await abre('app.js');
195195 await p.evaluate(() => { const ed = window.monaco.editor.getEditors()[0]; ed.focus(); ed.trigger('t', 'type', { text: ' ' }); });
196196 const punto = await hasta(() => p.evaluate(() => {
197- const tab = document.querySelector('#tabs-bar .tab.active'), dot = tab?.querySelector('b.dirty');
197+ const tab = document.querySelector('#tabs-bar .tab.active'), dot = tab?.querySelector('.tab-x.dirty');
198198 if (!dot) return null;
199199 const num = c => c.match(/[\d.]+/g).map(Number);
200200 const [r, g, b, a = 1] = num(getComputedStyle(dot).color), fondo = num(getComputedStyle(tab).backgroundColor);
modified web/js/ext/themes.js +3 −2
@@ -337,8 +337,9 @@
337337 `#tabs-bar .tab { color: ${texto};${borde ? ` border-right-color: ${borde};` : ''} }`,
338338 `#tabs-bar .tab.active { background: ${activa}; color: ${textoActiva};${acento ? ` box-shadow: inset 0 2px 0 ${acento};` : ''} }`,
339339 // el ● de «sin guardar» lleva el color claro del IDE (code.css): con un
340- // tema claro desaparecería, y es el único aviso de cambios sin guardar
341- `#tabs-bar .tab b.dirty { color: inherit; }`,
340+ // tema claro desaparecería, y es el único aviso de cambios sin guardar. Es
341+ // el botón .tab-x desde que la × dejó de ser un <b> (a02733c).
342+ `#tabs-bar .tab .tab-x.dirty { color: inherit; }`,
342343 `#editor-empty { background: ${bg}; color: ${texto}; }`,
343344 ].join('\n');
344345 }