iTwin / iTwinUI

A design system for building beautiful and well-working web interfaces.
https://itwin.github.io/iTwinUI/
MIT License
92 stars 35 forks source link

underline `Anchor` inside `Text` by default #1996

Closed mayank99 closed 2 weeks ago

mayank99 commented 3 weeks ago

Changes

This is a follow-up to #1864. Anchor's underline prop will default to true when used inside a Text. The implementation is done using a simple React context.

This change improves the accessibility, by adding an additional cue to differentiate links from surrounding text. See Use of Color.

Testing

Added unit test + tested manually.

image

Docs

Added changeset + updated existing docs on underline to mention new behavior.