[WIP] Hide or fix StackBlitz examples#36091
Closed
julien-deramond wants to merge 1 commit intotwbs:mainfrom
Closed
[WIP] Hide or fix StackBlitz examples#36091julien-deramond wants to merge 1 commit intotwbs:mainfrom
julien-deramond wants to merge 1 commit intotwbs:mainfrom
Conversation
This was referenced Mar 31, 2022
113a173 to
89cdd8a
Compare
Member
|
Thank you for this! Can I help in anyway? |
Member
Author
|
I haven't analyzed all the cases but some of them happen because they need an extra JS or CSS part specific to the documentation. I began to test few things regarding missing JS part in popovers in #36127. I'm not really satisfied with this solution so far but this was my first idea to fix the issue. |
2 tasks
This was referenced May 14, 2022
Member
Author
|
I'm closing this one replaced by the tracking issue #36391 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Initially in #36088, this PR proposes to hide or fix examples that doesn't work with StackBlitz.
This PR adds a new parameter
{{< example show_edit_btn="false" >}}to hide the StackBlitz edit button for examples that cannot work easily: need extra HTML or JS code; for example the alert's live example.Types of changes
Checklist
npm run lint)Related PR
#36088
Live previews
display: noneof.dropdown-menu.display: noneof.dropdown-menu.display: noneof.dropdown-menu.display: noneof.dropdown-menu.display: noneof.dropdown-menu.display: noneof.dropdown-menu.display: noneof.dropdown-menu..bd-example-ratios .ratio.bd-example-row-flex-cols .rowrules.bd-example-cssgrid .grid > *.bd-example-row .row > .col, .bd-example-row .row > [class^="col-"].bd-example-row .row > .col, .bd-example-row .row > [class^="col-"].bd-example-border-utils [class^="border"]specific rule.bd-examplespecific rule.bd-example-position-utils .position-absolutespecific rule.bd-highlightcoming from the docs CSS