-
Notifications
You must be signed in to change notification settings - Fork 107
[v12] fix(ui-link): fix standalone link #2374
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
base: v12
Are you sure you want to change the base?
Conversation
|
ff7310f to
36e44f9
Compare
| ? componentTheme.hoverTextDecorationWithinText | ||
| : componentTheme.hoverTextDecorationOutsideText |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tokens are unused now, can you ask design to delete them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll delete them!
| '&:hover, &:active': { | ||
| '&:hover, &:active, &:focus': { | ||
| color: componentTheme.textHoverColor, | ||
| textDecoration: isWithinText |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isWithinText is not used now, you can remove it from this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
36e44f9 to
e309c9d
Compare
01a1903 to
a7a01b6
Compare
INSTUI-4896
Summary
The standalone link had to be fixed due to an a11y requirement: interactive links must be underlined on interaction.
In addition, the Link component was rendering incorrectly and didn’t handle the new icons properly, so I fixed the way icons are rendered.
Test plan
Please check that standalone links also receive an underline during interaction (on hover or when tabbing). Also, verify that all links are displayed correctly on the documentation page.