fix(wizard): adjust z-index for nav shadow bug on mobile viewport#8205
fix(wizard): adjust z-index for nav shadow bug on mobile viewport#8205tarunvashishth wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughModifies z-index values in the Wizard component's stylesheet to make navigation stacking responsive. Introduces a mobile-specific z-index variable for navigation and adds a breakpoint-based override, while adjusting footer z-index. This addresses stacking order issues on mobile viewports. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
|
Preview: https://pf-pr-8205.surge.sh A11y report: https://pf-pr-8205-a11y.surge.sh |
|
This PR has been automatically marked as stale because it has not had activity in the last 60 days. |
jcmill
left a comment
There was a problem hiding this comment.
@tarunvashishth, I see what you're doing here. Good call on tackling the mobile size, but I think we could achieve this more simply by keeping __nav at --pf-t--global--z-index--sm and bumping up the __footer z-index token from xs to sm. Making them match.
With both set the same z-index, the stacking order would handle where the shadow is displayed across all sizes. In other words, the __nav would naturally fall behind the __footer due to the DOM order.
Fixes #7225
When the navigation bar touches the footer, a shadow will be visible on screens with a width less than 576px. This shadow will be hidden on screens wider than 576px.
Summary by CodeRabbit