Skip to content

DS-6374 Displacement: Collapse Icons when screen sizes are smaller#2408

Merged
artisticlight merged 14 commits intotestfrom
andy/Displacement-Header-Icons
Jan 15, 2026
Merged

DS-6374 Displacement: Collapse Icons when screen sizes are smaller#2408
artisticlight merged 14 commits intotestfrom
andy/Displacement-Header-Icons

Conversation

@artisticlight
Copy link
Member

Summary

When a smaller screen size is used, make the info/language/story map icons collapsible so they don’t overlap

artisticlight and others added 14 commits January 12, 2026 16:42
Everything looks good except for MapBox attribution at the bottom of the page.
Everything looks good. Need to test dark mode.
Dark mode supported and ready for testing.
minor nitpick: we should use @if @else since we're only checking a single variable (I think this was already there before this change I just noticed it in the git diff since the line got moved around)
I suggest we simplify the chevron menu screen size change sanity-check (HostListener can get expensive since from my understanding the current implementation will try to query the clicked component AND every parent html element until it reaches the site's root element (https://developer.mozilla.org/en-US/docs/Web/API/Element/closest)
I recommend we use Angular's animate.enter and animate.leave with css classes instead of their deprecated typescript-declared animation system, which will be removed in Angular V23. https://angular.dev/guide/animations
Bug fixes:
- Remove stray xmlns attribute from container div
- Add optional chaining for userAuth?.id to prevent null reference
- Add i18n support for drawer-tab tooltip (COLLAPSE_PANEL, EXPAND_PANEL keys)
- Add accessibility attributes to drawer-tab (aria-expanded, aria-controls, aria-label)

Code quality:
- Move inline styles to SCSS classes (panel-storymap-button, panel-info-button, text-adjust-storymap, text-adjust-info)
- Replace magic numbers with documented SCSS variables

Animation polish:
- Add will-change: transform for GPU-accelerated animation
- Add prefers-reduced-motion media query for accessibility
@artisticlight artisticlight merged commit 7306e86 into test Jan 15, 2026
6 checks passed
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