Checkpoint maison filaire (06/11), revue à deux axes : le focus clavier survit à la reconstruction du fil ; sous mouvement réduit, ni pulsation ni transition des logos ; encre du transport au contraste AA ; la poignée ne se dit ouverte que fiche ouverte ; en paysage téléphone le fil défile ; test « chaque effet d'étape est branché »

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PWGVn1MadEPbqdVsFPpCNB
This commit is contained in:
Jules Nény
2026-11-06 19:14:25 +01:00
co-authored by Claude Fable 5.1
parent 7f8b36d71c
commit 8c0c438542
5 changed files with 16 additions and 4 deletions
+5 -1
View File
@@ -118,7 +118,7 @@ function creerBandeau(sec, { nom, contenu, contenuFil = () => undefined, echelle
const avant = B.etat;
if (n === avant && !force) { B.majH(); return; }
B.etat = n; sec.dataset.etat = n;
poignee.setAttribute('aria-expanded', String(n !== 'barre'));
poignee.setAttribute('aria-expanded', String(n === 'resume' || n === 'plein'));
corps.inert = n === 'barre';
if ((n === 'resume' && (avant === 'barre' || avant === 'fil')) || n === 'fil') corps.scrollTop = 0;
B.majH();
@@ -363,7 +363,11 @@ function poserEtape(l) {
const e = ETAPES[l.i], f = FICHE[e.fiche]; if (!f) return;
const i = liste().indexOf(f); if (i >= 0) E.i = i;
poserCouleur($('fiches'), f.chapitre);
// checkpoint du 06/11 : #onglets et #points sont reconstruits à chaque étape ; le focus clavier est rendu au même bouton
const actif = document.activeElement;
const cible = actif?.closest?.('#points') && actif.dataset.f ? `#points [data-f="${actif.dataset.f}"]` : actif?.closest?.('#onglets') && actif.dataset.ch ? `#onglets [data-ch="${actif.dataset.ch}"]` : null;
onglets(f); points(f, l.allumees.map((k) => ETAPES[k].fiche)); majPoignee(f);
if (cible) document.querySelector(cible)?.focus({ preventScroll: true });
if (T3) T3.effets(l.allumees.map((k) => ETAPES[k].effet));
history.replaceState(null, '', '#maison');
}