Skip to content

fix: remove shadow band and scrollbar track in mobile flyout#15

Open
dereklputnam wants to merge 1 commit intopaviliondev:mainfrom
dereklputnam:fix/mobile-flyout-visual-artifacts
Open

fix: remove shadow band and scrollbar track in mobile flyout#15
dereklputnam wants to merge 1 commit intopaviliondev:mainfrom
dereklputnam:fix/mobile-flyout-visual-artifacts

Conversation

@dereklputnam
Copy link
Copy Markdown

Summary

Two visual artifacts appear in the mobile flyout panel (.mobile-view .top-level-links), both most noticeable in dark mode:

  • Trailing shadow band@include dropdown includes box-shadow: 0 12px 12px rgb(0 0 0 / 15%). On the desktop dropdown this looks natural (small floating box, max-width 280px). But the mobile flyout is position: fixed; width: 100%, so the shadow spans the full viewport width and appears as a dark semi-transparent bar below the last link. Fix: add box-shadow: none to override the mixin in this context.

  • Horizontal scrollbar trackoverflow: scroll forces both x and y scrollbar tracks to always render. The horizontal track (~15px tall) appears at the bottom of the flyout and is visually indistinguishable from extra padding, even when there is nothing to scroll horizontally. Fix: overflow-y: auto; overflow-x: hidden.

Changes

Only mobile/mobile.scss is modified — one property changed, one property added, with comments explaining the root cause of each.

Test plan

  • Open site on mobile or narrow desktop (< 712px)
  • Toggle the flyout open
  • Confirm no dark band appears below the last link
  • Confirm no horizontal scrollbar track appears at the bottom of the panel
  • Test in both light mode and dark mode (band is most visible in dark mode)

Generated with AI

Co-Authored-By: Claude Code ai@netwrix.com

Two visual artifacts appear in the mobile/narrow flyout panel:

1. **Trailing shadow band** — `@include dropdown` includes
   `box-shadow: 0 12px 12px rgb(0 0 0 / 15%)`. On the desktop dropdown
   (max-width: 280px) this looks natural. But the mobile flyout is
   `position: fixed; width: 100%`, so the same shadow spans the full
   viewport width, rendering as a dark semi-transparent bar below the
   last link — most visible in dark mode. Fix: override `box-shadow: none`.

2. **Horizontal scrollbar track** — `overflow: scroll` forces both x
   and y scrollbar tracks to always render. The horizontal track (~15px)
   sits at the bottom of the flyout and is visually indistinguishable
   from an extra padding band. Fix: `overflow-y: auto; overflow-x: hidden`.

Generated with AI

Co-Authored-By: Claude Code <ai@netwrix.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant