[Bug]: URI Text Fragments do not work with "Deep Dive" text blocks
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 11.8k
- Forks
- 7.9k
- Merge moyen
- 1 j 11 h
- PR mergées (30 j)
- 11
Description
Summary
Clicking a doc link that includes a Text Fragment does not scroll nor highlight the relevant text, if that text happens to be inside a "Deep Dive" section.
Page
Details
When attempting to quote a part of the doc that is under a "Deep Dive" section, with a URI text fragment: clicking the link will open the documentation page in the browser, but without scrolling to the relevant block nor highlighting the quoted part of the documentation.
However, there are two cases the highlighting works. Both of those require the page to already be loaded, the fragment is added to the uri of the page:
- If the section is not opened beforehand: the browser still does not scrolls to the section nor open it, but the text is correctly highlighted.
- If the section is opened beforehand: the browser scrolls to the section and highlights the text as expected
Here's a video capture of the problem:
https://github.com/user-attachments/assets/989e0a8c-2729-4072-aeca-ded2ac7d5c72
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par la page liée react.dev/reference/react/useCallback et examinez comment la section « Deep Dive » est rendue et ouverte lors de la navigation initiale. Reproduisez l’URL de fragment de texte fournie dans un chargement de page vierge, puis comparez-la à l’ajout du fragment après le chargement et l’ouverture de la section. La tâche est terminée lorsque le navigateur fait défiler la page jusqu’à du texte dans une section « Deep Dive » réduite et le met en évidence lors de la navigation directe.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, react
- Domaine
- documentation, web-dev
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 48/100