Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 666aa0a

Browse files
CaerusKaruThomasBurleson
authored andcommitted
fix(breakpoints): use correct orientation mediaquery
Fixes #763
1 parent d1a87cf commit 666aa0a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib/core/breakpoints/data/orientation-break-points.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
import {BreakPoint} from '../break-point';
1010

1111
/* tslint:disable */
12-
const HANDSET_PORTRAIT = '(orientations: portrait) and (max-width: 599px)';
13-
const HANDSET_LANDSCAPE = '(orientations: landscape) and (max-width: 959px)';
12+
const HANDSET_PORTRAIT = '(orientation: portrait) and (max-width: 599px)';
13+
const HANDSET_LANDSCAPE = '(orientation: landscape) and (max-width: 959px)';
1414

15-
const TABLET_LANDSCAPE = '(orientations: landscape) and (min-width: 960px) and (max-width: 1279px)';
16-
const TABLET_PORTRAIT = '(orientations: portrait) and (min-width: 600px) and (max-width: 839px)';
15+
const TABLET_LANDSCAPE = '(orientation: landscape) and (min-width: 960px) and (max-width: 1279px)';
16+
const TABLET_PORTRAIT = '(orientation: portrait) and (min-width: 600px) and (max-width: 839px)';
1717

18-
const WEB_PORTRAIT = '(orientations: portrait) and (min-width: 840px)';
19-
const WEB_LANDSCAPE = '(orientations: landscape) and (min-width: 1280px)';
18+
const WEB_PORTRAIT = '(orientation: portrait) and (min-width: 840px)';
19+
const WEB_LANDSCAPE = '(orientation: landscape) and (min-width: 1280px)';
2020

2121
export const ScreenTypes = {
2222
'HANDSET' : `${HANDSET_PORTRAIT}, ${HANDSET_LANDSCAPE}`,

0 commit comments

Comments
 (0)