fix: #3627031 Make the offcanvas menu clear the admin Navigation sidebar

Fixes #3627031.

The Offcanvas Menu panel opened underneath the admin Navigation sidebar. Not a z-index ordering mistake: the panel is 1045 and the sidebar 501, but the panel sits inside header[role="banner"], which sticky-header.theme.scss pins at 489 so admin chrome stays on top. That header is a stacking context, so the panel cannot rise past the sidebar, and raising it would re-cover the admin toolbar.

Offset instead of restacking, from Drupal's displace offsets. They track the sidebar expanding and collapsing, and are absent for anonymous visitors, so nothing changes for them.

Also here:

  • All Offcanvas Menu rules moved into the component stylesheet, which SDC attaches only where the component renders. Drops scss/theme/offcanvas-menu.theme.scss, whose library nothing referenced, so it had not loaded since 5dd414e.
  • Selector hardened to .offcanvas-menu__panel.offcanvas.offcanvas-start (0,4,0), beating Bootstrap's [dir="rtl"] rule (0,3,0) on specificity rather than load order.
  • Search field fixed in RTL: padding-inline is already logical and a [dir="rtl"] override flipped it back, leaving the placeholder under the icon.

Verified in a browser: sidebar expanded, panel at 264; collapsed, 64; tracks live while open; anonymous unchanged at 0; no overflow at 390px. RTL checked on an Arabic page in both sidebar states. Screenshots are on the issue.

AI-Generated: Yes

Checkpoints

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit/functional testing coverage
  • Developer Documentation support
  • User Guide Documentation support
  • UX/UI designer responsibilities
  • Accessibility and Readability
  • Reviewed by a human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Update Release Notes
  • Release

🤖 Generated with Claude Code

Edited by Rajab Natshah

Merge request reports

Loading
Loading