-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
docs: Add Collapse and Placeholders examples to Cheatsheet Example #42043
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: main
Are you sure you want to change the base?
docs: Add Collapse and Placeholders examples to Cheatsheet Example #42043
Conversation
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.
Pull request overview
This PR adds two missing Bootstrap component sections (Collapse and Placeholders) to the cheatsheet example page, making it more comprehensive for developers who use it as a quick reference.
Changes:
- Added navigation links for Collapse and Placeholders components in the sidebar menu
- Added Collapse component section with standard toggle example
- Added Placeholders component section with card skeleton loader example
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I think some of the failing tests are unrelated to my changes. |
Can't run it locally right now, but it might come from the following empty heading: <h5 class="card-title placeholder-glow">
<span class="placeholder col-6"></span>
</h5> |
Introduced new sections for Collapse and Placeholders components in the cheatsheet example page, including navigation links and example usage for each component. Update site/src/assets/examples/cheatsheet/index.astro Update site/src/assets/examples/cheatsheet/index.astro Update index.astro Co-Authored-By: Copilot <[email protected]>
b24a022 to
a3e2811
Compare
|
thanks for that pointer! I noticed the Placeholder example actually uses the following code, so I updated it and squashed the commits: <div class="h5 card-title placeholder-glow">
<span class="placeholder col-6"></span>
</div> |
Description
Introduced new sections for Collapse and Placeholders components in the cheatsheet example page, including navigation links and example usage for each component.
Ideally we'd update the RTL page too but I don't have translations for the components. Shall we use auto-translate for it?
Motivation & Context
Cheatsheet page is really useful to see all the components on a single page and Collapse and Placeholders were missing.
Type of changes
Checklist
npm run lint)Live previews