Skip to content

Commit

Permalink
Merge branch 'respect-prefersreducedmotion-des-221'
Browse files Browse the repository at this point in the history
  • Loading branch information
raksooo committed Jan 5, 2024
2 parents b291200 + 2499cde commit 1bcf0ef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Line wrap the file at 100 chars. Th
## [Unreleased]
### Added
- Add account UUID to verbose 'mullvad account get -v' output.
- Respect OS prefer-reduced-motion setting

#### Android
- Add support for all screen orientations.
Expand Down
10 changes: 10 additions & 0 deletions gui/assets/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,13 @@ body {
width: 100%;
display: flex;
}

@media (prefers-reduced-motion: reduce) {
* {
transition-duration: 1ms !important;
}

.map-zoomable-group {
transition-duration: 0ms !important;
}
}
1 change: 1 addition & 0 deletions gui/src/renderer/components/SvgMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ function SvgMap(props: IProps) {
projectionConfig={projectionConfig}>
<ZoomableGroup
center={zoomCenter}
className="map-zoomable-group"
zoom={zoomLevel}
onTransitionEnd={removeOldViewportBboxes}
style={zoomableGroupStyle}
Expand Down

0 comments on commit 1bcf0ef

Please sign in to comment.