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

Highlight law and reg text #692

Merged
merged 2 commits into from
Sep 18, 2023
Merged

Highlight law and reg text #692

merged 2 commits into from
Sep 18, 2023

Conversation

kewitham
Copy link
Collaborator

This PR adds a script to highlight the relevant section when the copy or print button is hovered over in the laws and regs so users know which portion of the text they are copying. It also fixes some page field issues to fix Netlify rendering.

image

@github-actions
Copy link

🔍 Preview in Federalist

@c2nelson
Copy link
Collaborator

awesome! thanks, @kewitham

Copy link
Collaborator

@okkays okkays left a comment

Choose a reason for hiding this comment

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

Nice! A couple of comments about classList vs className, but LGTM!

_assets/js/laws-regs-parser.js Outdated Show resolved Hide resolved
_assets/js/laws-regs-parser.js Outdated Show resolved Hide resolved
@kewitham kewitham merged commit b3d383b into main Sep 18, 2023
2 checks passed
@kewitham kewitham deleted the kw/highlight-law-reg-text branch September 18, 2023 16: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