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

Make text links underlined by default #577 #580

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

adamkudrna
Copy link
Member

@adamkudrna adamkudrna commented Dec 2, 2024

1. Allow configuration Remove configurable font weight of links inside Alert #577

Default font weight of links is now set to "regular" so it is consistent with other links in React UI. However, it remains configurable because of downstream project requirements.

Links in Alert now inherit the font weight which is consistent with other links in React UI.

2. Make text links underlined by default #577

Since the color inheritance for links has been introduced in #492, links in e.g. validation messages cannot be distinguished from regular text until hovered. We chose to underline all text links by default to make those links discoverable by users.

New CSS custom property:

--rui-underline-offset-link

Closes #577

@adamkudrna adamkudrna self-assigned this Dec 2, 2024
@github-actions github-actions bot added the BC Breaking change label Dec 2, 2024
src/components/Alert/README.md Outdated Show resolved Hide resolved
Links in `Alert` now inherit the font weight which is consistent
with other links in React UI.
Since the color inheritance for links has been introduced
in #492, links in e.g. validation messages cannot be
distinguished from regular text until hovered. We chose
to underline all text links by default to make those links
discoverable by users.
@adamkudrna adamkudrna linked an issue Dec 6, 2024 that may be closed by this pull request
@adamkudrna adamkudrna merged commit e9f92dd into feature/inherit-link-color Dec 6, 2024
9 checks passed
@adamkudrna adamkudrna deleted the bc/577-link-style branch December 6, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Review link styles
3 participants