-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
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
Docs: add explanation of the base .btn
class
#37275
Conversation
and a callout reminding authors to at least define some focus styling if they intend to use it "naked"
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.
This explanation looks good to me and explain well what are "naked" buttons and how they look like. It will help with non-regression testing.
@mdo I let you check it too
@mdo when you get a moment, could you give this a thumbs up or down? |
Going to be so bold as to merge it, as there doesn't seem to be any further feedback on it |
Description
As discussed recently in the team slack, this adds an initial explanation of the intention behind the basic
.btn
class - as a starting point for either using the extra predefined styles, or for an author's own stylings.Also adds a callout reminding authors to at least define some focus styling if they intend to use it "naked".
Motivation & Context
We're often seeing authors using just
.btn
, and this "naked" use is not actually documented/explained anywhere. Also, authors then forgetting to create focus styles causes accessibility issues further down the line if they're not expecting it. We may decide in future to still add some absolutely basic focus styling, just in case, but this would be a breaking change for the next minor release/Live previews