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');