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

fix(docs): restore behavior of description term links #9811

Merged
merged 5 commits into from
Oct 13, 2023

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Oct 13, 2023

Summary

Fixes #9810.

Problem

#8413 introduced a regression, making it unable to identify description terms (<dt>) that link to another page.

Solution

Restore the style of those links, excluding anchor links.

Also makes the hashtag of the anchor links interactive.


Screenshots

Before

image

After

image

How did you test this change?

Ran yarn dev and opened http://localhost:3000/en-US/docs/Web/CSS/border#values locally.

@caugner
Copy link
Contributor Author

caugner commented Oct 13, 2023

@OnkarRuikar Would you be interested in reviewing this PR?

@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Oct 13, 2023
@OnkarRuikar
Copy link
Contributor

This how the suggestion works:

definitionTermLinks.mp4

@caugner caugner requested a review from OnkarRuikar October 13, 2023 11:40
@caugner
Copy link
Contributor Author

caugner commented Oct 13, 2023

@OnkarRuikar Thank you for catching those issues! 🙌

@caugner caugner changed the title fix(docs): restore color on description term page links fix(docs): restore behavior of description term links Oct 13, 2023
Copy link
Contributor

@OnkarRuikar OnkarRuikar left a comment

Choose a reason for hiding this comment

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

The code is much more concise now. A tiny simplification and it will be perfect.

client/src/document/index.scss Outdated Show resolved Hide resolved
client/src/document/index.scss Outdated Show resolved Hide resolved
@caugner caugner requested a review from OnkarRuikar October 13, 2023 12:35
@caugner caugner force-pushed the fix-dt-page-link-color branch from 1a3939f to fe2be51 Compare October 13, 2023 12:36
@caugner caugner merged commit 0cad7f4 into main Oct 13, 2023
@caugner caugner deleted the fix-dt-page-link-color branch October 13, 2023 12:55
@caugner
Copy link
Contributor Author

caugner commented Oct 13, 2023

Thank you for the thorough reviews @OnkarRuikar! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macros tracking issues related to kumascript macros
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to recognize definition term hyperlinks in definition lists
2 participants