Set data-pagefind-ignore on heading anchor accessibility text #3675
Merged
delucis merged 5 commits intowithastro:mainfrom Jan 29, 2026
Merged
Set data-pagefind-ignore on heading anchor accessibility text #3675delucis merged 5 commits intowithastro:mainfrom
delucis merged 5 commits intowithastro:mainfrom
Conversation
this should not appear in search results
🦋 Changeset detectedLatest commit: e64bcb3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for astro-starlight ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
delucis
approved these changes
Jan 29, 2026
Member
delucis
left a comment
There was a problem hiding this comment.
Great catch! Thanks for the fix @controversial 🚀
Merged
dadezzz
pushed a commit
to dadezzz/ice-notes
that referenced
this pull request
Feb 7, 2026
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@astrojs/starlight](https://starlight.astro.build) ([source](https://github.com/withastro/starlight/tree/HEAD/packages/starlight)) | [`0.37.4` → `0.37.6`](https://renovatebot.com/diffs/npm/@astrojs%2fstarlight/0.37.4/0.37.6) |  |  | --- ### Release Notes <details> <summary>withastro/starlight (@​astrojs/starlight)</summary> ### [`v0.37.6`](https://github.com/withastro/starlight/blob/HEAD/packages/starlight/CHANGELOG.md#0376) [Compare Source](https://github.com/withastro/starlight/compare/@astrojs/starlight@0.37.5...@astrojs/starlight@0.37.6) ##### Patch Changes - [#​3645](withastro/starlight#3645) [`a562096`](withastro/starlight@a562096) Thanks [@​mschoeffmann](https://github.com/mschoeffmann)! - Adds icons for Chrome, Edge, Firefox, and Safari ### [`v0.37.5`](https://github.com/withastro/starlight/blob/HEAD/packages/starlight/CHANGELOG.md#0375) [Compare Source](https://github.com/withastro/starlight/compare/@astrojs/starlight@0.37.4...@astrojs/starlight@0.37.5) ##### Patch Changes - [#​3675](withastro/starlight#3675) [`0ba556d`](withastro/starlight@0ba556d) Thanks [@​controversial](https://github.com/controversial)! - Excludes the accessible labels for heading anchor links from Pagefind results </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45Mi4xMiIsInVwZGF0ZWRJblZlciI6IjQyLjkyLjEyIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: Renovate Bot <renovate@zarantonello.dev> Co-committed-by: Renovate Bot <renovate@zarantonello.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Closes #3676
Heading anchors include
sr-onlytext like ‘Section titled “x”‘ as an affordance for screen readers to interact with the anchor links.Since this content is visible to pagefind, this causes a lot of strange search results, especially when your search matches text in a heading:
In this PR, we add
data-pagefind-ignoreto the screen-reader-only text, which makes search results read as normal.Before and after: