EPMRPP-117343 || Fix modal scrollbar overlap#306
Conversation
WalkthroughThis change adds z-index CSS rules for scrollbar view and track elements in the modal stylesheet, and updates the Modal component to apply these custom class names to the Scrollbars component's view, trackHorizontal, and trackVertical elements. ChangesScrollbars z-index layering
Estimated code review effort: 1 (Trivial) | ~5 minutes Estimated code review effort: 1 (Trivial) | ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/components/modal/modal.module.scss (1)
81-88: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueConsider naming these values via a shared z-index scale.
z-index: 101andz-index: 100are magic numbers local to this file. If other components in the modal stack (overlay, header, dropdown portals) also hardcode arbitrary z-index values, future collisions are hard to reason about.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/components/modal/modal.module.scss` around lines 81 - 88, The modal scroll view and track are using hardcoded z-index magic numbers, which should be replaced with shared named values from a common z-index scale. Update the styles for .scrollbars-scroll-view and .scrollbars-scroll-track to reference the project’s centralized z-index tokens/variables, and align them with any existing modal-layer constants so components like the overlay, header, and dropdown portals use a consistent stacking scheme.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/components/modal/modal.module.scss`:
- Around line 81-88: The modal scroll view and track are using hardcoded z-index
magic numbers, which should be replaced with shared named values from a common
z-index scale. Update the styles for .scrollbars-scroll-view and
.scrollbars-scroll-track to reference the project’s centralized z-index
tokens/variables, and align them with any existing modal-layer constants so
components like the overlay, header, and dropdown portals use a consistent
stacking scheme.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6907bb65-f026-4a14-9a58-93f589cae913
📒 Files selected for processing (2)
src/components/modal/modal.module.scsssrc/components/modal/modal.tsx
Changes
Visuals
Before:

After:

Summary by CodeRabbit