Skip to content

ref(navigation) cleanup sidebar styled components#110459

Merged
JonasBa merged 9 commits into
masterfrom
jb/ref/sidebar-use-flex-primitives
Mar 11, 2026
Merged

ref(navigation) cleanup sidebar styled components#110459
JonasBa merged 9 commits into
masterfrom
jb/ref/sidebar-use-flex-primitives

Conversation

@JonasBa
Copy link
Copy Markdown
Member

@JonasBa JonasBa commented Mar 11, 2026

Removes the use of styled for primary nav and moves collapsible component into the secondary navigation components

JonasBa and others added 5 commits March 11, 2026 10:35
Replace SidebarWrapper, SidebarHeader, and CollapsedSecondaryWrapper styled
components with Flex layout primitives from @sentry/scraps/layout. Extract
framer-motion animation config into a standalone helper function.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fix bottom/height being applied to mobile layout instead of sidebar layout.
Remove unused css and styled imports. Restore user-select: none on the
navigation container.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fix useMemo using tourIsActive instead of isOpen for animation props
- Restore aria-label="Primary Navigation" on sidebar nav element
- Remove spurious right=0 from superuser Container
- Restore align=center and z-index on UserOnlyNavigation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The primary nav element does not need an accessible label. Replace the
aria-label with a data-test-id and update tests accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@JonasBa JonasBa requested review from a team as code owners March 11, 2026 18:31
@JonasBa JonasBa requested review from malwilley and removed request for a team March 11, 2026 18:31
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 11, 2026
Comment thread static/app/views/navigation/mobileNavigation.tsx
Comment thread static/app/views/navigation/navigation.tsx
Reverts the data-test-id change introduced in the previous commit.
Restores aria-label="Primary Navigation" on the primary nav element
and updates tests to use getByRole queries instead of getByTestId.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread static/app/views/navigation/mobileNavigation.tsx
The mobile navigation overlay was using a plain Flex (div) instead of a
nav element, losing the navigation landmark for screen readers. Similarly,
the topbar was missing the header landmark. Restore these by adding as="nav"
and as="header" to match the old styled('nav') and styled('header') elements.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
@JonasBa JonasBa merged commit 30c868d into master Mar 11, 2026
63 checks passed
@JonasBa JonasBa deleted the jb/ref/sidebar-use-flex-primitives branch March 11, 2026 22:19
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants