Skip to content

Pagefind 1.5#1480

Merged
alexisben merged 31 commits into
pagefind-filtersfrom
pagefind-filters-1.5
May 26, 2026
Merged

Pagefind 1.5#1480
alexisben merged 31 commits into
pagefind-filtersfrom
pagefind-filters-1.5

Conversation

@arnaudlevy
Copy link
Copy Markdown
Member

Type

  • Nouvelle fonctionnalité
  • Bug
  • Ajustement
  • Rangement

Description

Niveau d'incidence

  • Incidence faible 😌
  • Incidence moyenne 😲
  • Incidence forte 😱

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

djLint

Linted 849 files, found 0 errors.

Hugolint

Directories are perfect ✅

Partials calls are perfect ✅

Too many lines (1)

Files should not be too long, it's a sign of mess and a difficulty for overrides.

0 ❌
1 ⚠️

Id State Lines Path
lin1 ⚠️ 36 _partials/publications/single.html

Complexity is perfect ✅

for (attribut in window.osuny.pagefindOptions) {
options[attribut] = window.osuny.pagefindOptions[attribut];
if (this.elements.buttonOpen) {
this.elements.buttonOpen.addEventListener('click', this.toggleDetails.bind(this));
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c'est préférable d'avoir open / close plutôt que toggle dans le cas où ce sont 2 boutons je trouve

title.setAttribute('aria-level', '2');
window.osuny.Search.prototype.resize = function () {
if (isMobile()) {
this.openDetails(false);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oui vraiment close() est beaucoup plus clair


if (this.elements.buttonOpen) {
this.elements.buttonOpen.addEventListener('click', this.toggleDetails.bind(this));
this.elements.buttonOpen.addEventListener('click', this.openDetails.bind(this));
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c'est quoi details ? on peut pas juste open ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

j'ai pensé qu'il fallait préciser mais tu as raison, on pourrait s'en servir pour autre chose

}.bind(this));
}

window.osuny.Search.prototype.updateDocumentAccessibility = function (isOpen) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on est dans une logique objet, on a déjà l'info sur l'ouverture, il faut la prendre dans this et pas la passer à la fonction il me semble

window.osuny.Search.prototype.updateDocumentAccessibility = function (isOpen) {
console.log(isOpen)
document.body.style.overflow = isOpen ? 'hidden' : 'auto';
ariaHideBodyChildren(this.elements.root, isOpen);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idem, il faut s'appuyer sur l'état de l'objet, pas faire du fonctionnel avec des paramètres

@Olivia206
Copy link
Copy Markdown
Contributor

Olivia206 commented May 26, 2026

A11Y

Problèmes de pagefind :

  • le message "x résultats" bloque la navigation clavier vers les filtres et les résultats
  • le bouton "fermer" est situé après l'input de recherche

Changements par rapport à la version actuelle

  • Retrait du bouton "voir + de résultats", remplacé par un nombre max de résultats -> todo: définir ce maximum

@alexisben alexisben marked this pull request as ready for review May 26, 2026 15:13
@alexisben alexisben merged commit 8685456 into pagefind-filters May 26, 2026
2 of 3 checks passed
@alexisben alexisben deleted the pagefind-filters-1.5 branch May 26, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants