-
Notifications
You must be signed in to change notification settings - Fork 92
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
feat(buttons): underline Anchor
by default
#1871
Conversation
- `Anchor`: renders with an underline for improved accessibility. The same | ||
treatment applies to `<Button isLink>`. The default can be removed with | ||
`<Anchor isUnderlined={false}>` for word-wrapped or redundant UI where the | ||
underline is considered to be a visual distraction. While technically not a | ||
breaking change, the migration guide highlights this change for upgrade cases | ||
that may render unexpected styling. |
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.
Should we mention that <Button isLink />
will always render with an underline?
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.
My instinct is not to highlight that aspect too hard, and see if consumers need the non-default styling over buttons. If so, we can add a isLinkUnderlined
(or similar) prop.
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 suspect as long as the designs match this new default, we won't get too much humbuzz :D cc: @lucijanblagonic
Description
The same default styling applies to
<Button isLink>
. Due to expected usage, the link-styledButton
does not offer a capability to remove the underline. Note that existing hover/focus/active styling remains unchanged.Checklist
npm start
)renders as expected with reversed (RTL) direction?bedrock
)tested in Chrome, Firefox, Safari, and Edge