-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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: use <button>
for dropdown/popover examples, explain preference over <a>
for dropdowns, tweak collapse prose
#37432
Conversation
53b873b
to
a1bbe5d
Compare
The changes LGTM and make this part of the documentation clearer. However I'm wondering it we shouldn't also modify the following things:
|
@julien-deramond sorry, wasn't quite finished with this. was just too tired last night, but wanted to at least make a start - hence the draft ;) |
My bad. Hadn't seen the draft 😇 |
the dropdowns with taking https://getbootstrap.com/docs/5.2/components/navbar/#supported-content as an example, changing the control to that is, i think, one of the main reasons why for some components/patterns, authors still use an I think that's something to consider for v6 ... reviewing all the styles to make it possible to seamlessly mix and match links and real EDIT: filed #37433 |
<a>
, use <button>
s for modal examples<button>
for dropdown/popover examples, explain preference over <a>
for dropdowns
<button>
for dropdown/popover examples, explain preference over <a>
for dropdowns<button>
for dropdown/popover examples, explain preference over <a>
for dropdowns, tweak collapse prose
0f444bd
to
661991b
Compare
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.
Nicely done!
Description
<button>
is recommended/preferred. Change subsequent example to use<button>
role="button"
from<button>
elements in collapse unit tests<button>
for popovers inside modal, and for the modal trigger itselfMotivation & Context
Closes #37426
Type of changes
Checklist
npm run lint
)Live previews