From 3ccea7507d65a2a73c8827a87e762bfaba4b018c Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Wed, 28 Oct 2026 00:30:28 -0400 Subject: [PATCH] [FIX] inclusions: search placeholder takes the page's secondary ink MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The inclusions search field never styled its placeholder, so it kept the browser's default grey in both themes: 3.59:1 on the dark card, below the 4.5:1 that § 14.5 requires for all text. It now takes the page's secondary ink at full opacity, a token the palette already checks on the card in both themes and under the colour-blindness simulations: about 7.2:1 dark, 6.1:1 light. A browser test pins token, field background and contrast in both themes. Checked: node 7696/7696, long 163/163 with fingerprints unchanged, docs 0, transversal 80/80, Participants 106/106, Fiche 61/61. --- FR --- [FIX] inclusions : l'indicatif de recherche prend l'encre secondaire Le champ de recherche des inclusions ne stylait pas son texte indicatif, qui gardait le gris par défaut du navigateur dans les deux thèmes : 3,59:1 sur la carte sombre, sous les 4,5:1 que le § 14.5 exige de tout texte. Il prend désormais l'encre secondaire de la page à pleine opacité, un jeton que la palette mesure déjà sur la carte dans les deux thèmes et sous les simulations de daltonisme : environ 7,2:1 en sombre, 6,1:1 en clair. Un test navigateur fige jeton, fond du champ et contraste dans les deux thèmes. Vérifié : node 7696/7696, longue 163/163 empreintes inchangées, doc 0, transversal 80/80, Participants 106/106, Fiche 61/61. Assisted-by: Claude Opus 5.5 --- .../participants/ChoixMultiple.svelte | 10 +++++++++- .../Participants.navigateur.test.js | 18 +++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/interface/participants/ChoixMultiple.svelte b/src/interface/participants/ChoixMultiple.svelte index 8bad70b..e3db30a 100644 --- a/src/interface/participants/ChoixMultiple.svelte +++ b/src/interface/participants/ChoixMultiple.svelte @@ -220,7 +220,10 @@ } /* La recherche : un champ de la largeur du groupe, qui reste en haut - d'un groupe compact quand ses cases défilent. */ + d'un groupe compact quand ses cases défilent. Son texte indicatif prend + l'encre secondaire, à pleine opacité, que la palette mesure sur la carte + dans les deux thèmes : le gris par défaut du navigateur ne change pas + de thème. */ .recherche { box-sizing: border-box; flex: 1 0 100%; @@ -235,6 +238,11 @@ font: inherit; } + .recherche::placeholder { + color: var(--couleur-page-texte-secondaire); + opacity: 1; + } + .compact .recherche { position: sticky; top: 0; diff --git a/src/interface/participants/Participants.navigateur.test.js b/src/interface/participants/Participants.navigateur.test.js index 2097089..a808120 100644 --- a/src/interface/participants/Participants.navigateur.test.js +++ b/src/interface/participants/Participants.navigateur.test.js @@ -43,7 +43,7 @@ import { VERSION } from '../../version.genere.js'; import { monterApp } from '../../../test/navigateur/montage.js'; import { actionDe, boutonActions } from '../../../test/navigateur/menus.js'; import { fixerCadre, pointer, touche } from '../../../test/navigateur/entrees.js'; -import { composantes, rangeesDeTexte, sousTheme, traductionEcran, visible } from '../../../test/navigateur/rendu.js'; +import { composantes, contraste, rangeesDeTexte, sousTheme, traductionEcran, visible } from '../../../test/navigateur/rendu.js'; import CAS_LIMITES from '../../../exemples/participants_cas_limites.csv?url'; import { RANGS_ORGANISATION, teintesOrganisations } from '../organisations.js'; import { TABLES_INTERFACE } from '../libelles.js'; @@ -1427,6 +1427,22 @@ describe('les inclusions dans la grille (§ 4, § 10.2)', () => { } }); + test('le texte indicatif de la recherche prend l’encre secondaire de la page et tient 4,5:1 sur le fond du champ, dans les deux thèmes', async () => { + const m = await ouvert(); + const id = idDe(m, 'Ombrelle'); + await ouvrir(m, id); + const champ = recherche(m, id); + expect(champ.getAttribute('placeholder')).toBe(tEcran('participants.inclusions.recherche')); + for (const theme of ['clair', 'sombre']) { + await sousTheme(theme, async () => { + const indicatif = composantes(getComputedStyle(champ, '::placeholder').color); + expect(indicatif, theme).toEqual(jeton('--couleur-page-texte-secondaire')); + expect(fondDe(champ), theme).toEqual(jeton('--couleur-carte-fond')); + expect(contraste(indicatif, fondDe(champ)), theme).toBeGreaterThanOrEqual(4.5); + }); + } + }); + test('un refus dans la cellule, la saisie gardée, les deux groupes marqués ; masquer la colonne l’abandonne, geste libéré ; en lecture, Entrée pose le refus de la séance', async () => { const m = await ouvert(); const id = idDe(m, 'Grisaille');