[go: nahoru, domu]

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

Docs: add explanation of the base .btn class #37275

Merged
merged 12 commits into from
Jan 3, 2023

Conversation

patrickhlauke
Copy link
Member
@patrickhlauke patrickhlauke commented Oct 8, 2022

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

and a callout reminding authors to at least define some focus styling if they intend to use it "naked"
Copy link
Member
@julien-deramond julien-deramond left a 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

site/content/docs/5.2/components/buttons.md Outdated Show resolved Hide resolved
@mdo mdo self-assigned this Oct 31, 2022
@patrickhlauke
Copy link
Member Author

@mdo when you get a moment, could you give this a thumbs up or down?

@patrickhlauke
Copy link
Member Author

Going to be so bold as to merge it, as there doesn't seem to be any further feedback on it

@patrickhlauke patrickhlauke merged commit 9013c98 into main Jan 3, 2023
@patrickhlauke patrickhlauke deleted the patrickhlauke-docs-buttons-naked branch January 3, 2023 11:28
@mahilanmjd mahilanmjd mentioned this pull request Apr 16, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants