-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(b-sidebar): add prop backdrop-variant
#5411
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
feat(b-sidebar): add prop backdrop-variant
#5411
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/bootstrap-vue/bootstrap-vue/e0n3augc7 |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit f13ec43:
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 4f739e3:
|
Codecov Report
@@ Coverage Diff @@
## dev #5411 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 277 277
Lines 8875 8877 +2
Branches 2495 2495
=========================================
+ Hits 8875 8877 +2
Continue to review full report at Codecov.
|
|
When thinking a bit about it we should have gone for the same logic as |
|
@jackmu95 although the majority of side bar usages I have seen in the wild are non-modal (i.e. don't show a backdrop by default, and allow user interaction with the page) |
Possible. I remember the first time i opened the sidebar i tried clicking outside of it to close it, and was confused why nothing happened. |
|
There is actually an example of using a bootstrap modal as a |
|
Perhaps the click-out handler could be used to close the modal when clicking outside (although it requires a click listener to be instantiated on the document body when the component is visible, and removed when hidden). |
This is a solid point. |
|
Alternatively a But it would be less obvious that it's possible for the users, but that might not be the biggest issue. |
|
Or a |
backdrop-transparentbackdrop-variant
Describe the PR
This PR adds an additional property
backdrop-variant.You can use the
backdrop-variantprop to control the theme color variant of the backdrop.PR checklist
What kind of change does this PR introduce? (check at least one)
fix(...), requires a patch version updatefeat(...), requires a minor version updatefeat(...), requires a minor version updatefix(...), requires a patch or minor version updatechore(docs), requires a patch version updateDoes this PR introduce a breaking change? (check one)
The PR fulfills these requirements:
devbranch, not themasterbranch[...] (fixes #xxx[,#xxx]), where "xxx" is the issue number)fix(alert): not alerting during SSR render,docs(badge): update pill examples,chore(docs): fix typo in README, etc). This is very important, as theCHANGELOGis generated from these messages, and determines the next version type (patch or minor).If new features/enhancement/fixes are added or changed:
If adding a new feature, or changing the functionality of an existing feature, the PR's
description above includes: