Skip to content

Fix blog tag filter selected state and context#705

Open
NIRMAL20062 wants to merge 1 commit intowagtail:mainfrom
NIRMAL20062:fix/blog-tag-filter-selected-state-a11y
Open

Fix blog tag filter selected state and context#705
NIRMAL20062 wants to merge 1 commit intowagtail:mainfrom
NIRMAL20062:fix/blog-tag-filter-selected-state-a11y

Conversation

@NIRMAL20062
Copy link
Copy Markdown
Contributor

Description

Tag filter pills were missing entirely on tag pages (e.g. /blog/tags/baking/).
The "All" pill was always shown as selected even when filtering by a tag,
and the active tag had no visual highlight.

Fixes:

  • Tag pills now render on tag-filtered pages
  • "All" is selected on /blog/, becomes a link on tag pages
  • Active tag pill is highlighted when filtering
  • Removed redundant aria-label on tag links (visible text is sufficient)
  • Fixed template variable shadowing (tagchild_tag in loop)

AI usage

Used GitHub Copilot for implementation support and verification and refinement of the description.

thanks.

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.

1 participant