Skip to content

feat(design): automatically add anchor link and copy URL button to article headings - #4260

Merged
damienwebdev merged 11 commits into
graycoreio:developfrom
joannalauu:feat/heading-anchors
Jan 6, 2026
Merged

feat(design): automatically add anchor link and copy URL button to article headings#4260
damienwebdev merged 11 commits into
graycoreio:developfrom
joannalauu:feat/heading-anchors

Conversation

@joannalauu

@joannalauu joannalauu commented Dec 14, 2025

Copy link
Copy Markdown
Contributor

PR Checklist

  • Commit message follows our contributing guidelines
  • Tests added/updated (for bug fixes/features)
  • Documentation added/updated (for bug fixes/features)

PR Type

  • Bug fix
  • Feature
  • Style update
  • Refactor
  • Test
  • Build
  • CI
  • Docs
  • Performance
  • Other (please describe)

Current behavior

Fixes: #3973

New behavior

  • Added anchor link to article heading that directs user to that heading on click.
  • Added button next to article heading that copies the heading URL to clipboard on click
  • Anchor links and buttons are automatically added to all <h2>, <h3>, <h4> headings in DaffArticleComponent by default, but can be removed by adding a nolink attribute into the element

Breaking change?

  • Yes
  • No

Additional context

@joannalauu
joannalauu requested review from a team as code owners December 14, 2025 02:11
Comment thread libs/design/article/src/article-theme.scss Outdated
@xelaint
xelaint requested a review from damienwebdev December 17, 2025 19:57
@xelaint xelaint added the package: design @daffodil/design label Dec 17, 2025
@joannalauu
joannalauu requested a review from xelaint December 17, 2025 20:47

@damienwebdev damienwebdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@damienwebdev
damienwebdev merged commit 39cfdd4 into graycoreio:develop Jan 6, 2026
16 checks passed
@gray-bot gray-bot mentioned this pull request Jan 6, 2026
@joannalauu
joannalauu deleted the feat/heading-anchors branch January 6, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: design @daffodil/design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add anchor links to markdown titles from <h2> to <h4>

3 participants