Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add scroll to text fragment/highlight #114

Open
McNerdius opened this issue Jan 14, 2022 · 0 comments
Open

add scroll to text fragment/highlight #114

McNerdius opened this issue Jan 14, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@McNerdius
Copy link
Owner

McNerdius commented Jan 14, 2022

This: https://github.com/WICG/scroll-to-text-fragment/
In Action


Presumably broken in Blazor for the same reason as hash-navigation, recreating it in the same way (navigationmanager hook + js) would be needed ?


The Using Edge's "Copy link to highlight" for the /build page, we get a link like https://localhost:5001/build#:~:text=Tailwind%20Incremental%20Builds.

The :~:text=... is being stripped off, it's not included in NavigationManager.Uri or LocationChangedEventArgs.Location. AnchorNavigationHook intercepts anything with a # but doesn't get the highlight bits.

@McNerdius McNerdius added the enhancement New feature or request label Jan 14, 2022
@McNerdius McNerdius self-assigned this Jan 14, 2022
@McNerdius McNerdius added razor help wanted Extra attention is needed and removed razor labels Jan 14, 2022
@McNerdius McNerdius changed the title text highlight link functionality add scroll to text fragment/highlight Jan 15, 2022
@McNerdius McNerdius removed their assignment Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant