Repository navigation
fix modal backdrop buttons fixed - #259
Merged
Merged
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideFixes modal backdrop behavior by lowering Flow diagram for modal backdrop stacking behaviorflowchart TD
A[Modal opens] --> B[.modal-open applies]
B --> C[.buttons-fixed z-index becomes 1039]
C --> D[Modal backdrop z-index 1040]
D --> E[Backdrop covers fixed buttons]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="assets/scss/components/_modal.scss" line_range="3-4" />
<code_context>
- z-index: 9999999;
+// .buttons-fixed sits at z-index 2000, above the modal backdrop; drop it below the backdrop while a modal is open.
+.modal-open .buttons-fixed {
+ z-index: $zindex-modal-backdrop - 1;
}
.modal-content {
</code_context>
<issue_to_address>
**Buttons reappear over remaining modal**
When a second modal is opened before the first has finished closing, and the first hides while the second remains visible, bootstrap removes `modal-open` when either modal finishes hiding, even if another modal is still visible, so this selector stops lowering `.buttons-fixed` and the bar sits above the remaining backdrop, clickable through it.
Keep the fixed bar below the backdrop for as long as any modal remains visible, or prevent overlapping modals.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: assets/scss/components/_modal.scss:4
daphneslootmans
approved these changes
Oct 15, 2026
tijsverkoyen
approved these changes
Oct 15, 2026
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.
While a modal is open, the fixed button bar (
.buttons-fixed, z-index 2000) stayed above the modal backdrop (z-index 1040), so it wasn't dimmed and stayed clickable..modal-open,.buttons-fixeddrops to$zindex-modal-backdrop - 1(1039), so the backdrop covers it..modal-backdrop.in { z-index: 9999999 }rule:.inis a Bootstrap 3 class and never matches in Bootstrap 5. Switching it to.showwould have put the backdrop above the modal itself.Summary by Sourcery
Prevent fixed button bars from appearing above or remaining clickable through modal backdrops.
Bug Fixes:
Documentation: