Skip to content

Apply design system styling to autolink links#395

Merged
aduth merged 1 commit intomainfrom
aduth-content-typography-autolink
Mar 31, 2023
Merged

Apply design system styling to autolink links#395
aduth merged 1 commit intomainfrom
aduth-content-typography-autolink

Conversation

@aduth
Copy link
Copy Markdown
Contributor

@aduth aduth commented Mar 31, 2023

Extends existing ContentTypography plugin to apply standard design system styling to "autolinks", which are treated distinctly from Markdown-formatted links.

Copied from GSA-TTS/identity-dev-docs#319

Screenshots:

Example: https://handbook.login.gov/articles/platform-gitlab-env-deploy.html

Before After
image image

Extends existing ContentTypography plugin to apply standard design system styling to "autolinks", which are treated distinctly from Markdown-formatted links.
Comment on lines +11 to +13
*children, el = super
add_link_class!(el)
[*children, el]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

@aduth aduth merged commit 381da80 into main Mar 31, 2023
@aduth aduth deleted the aduth-content-typography-autolink branch March 31, 2023 18:10
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.

2 participants