digdir / designsystemet

Designsystemet
https://designsystemet.no
MIT License
85 stars 38 forks source link

Lack of visual indication for links within code blocks (Storybook) #2801

Open mrosvik opened 1 week ago

mrosvik commented 1 week ago

Problem

When a piece of text is both a code block and a link, it is not visually clear that the text is also a clickable link. This can confuse users and lead to a poor user experience, especially for those who rely on visual cues or do not expect code blocks to be interactive.

Image

Expected Behavior

Links that are also presented as code blocks should include a visual indicator to make it clear that they are clickable.

For example: Adding an underline as the default styling for links.