Skip to content

Commit 7f09b92

Browse files
committed
fix(Application): orientation & systemAppearance root classes
1 parent 4424645 commit 7f09b92

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/core/application/application-common.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ export class ApplicationCommon {
233233
private setRootViewCSSClasses(rootView: View): void {
234234
const platform = Device.os.toLowerCase();
235235
const deviceType = Device.deviceType.toLowerCase();
236+
const orientation = this.orientation();
237+
const systemAppearance = this.systemAppearance();
236238

237239
if (platform) {
238240
CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${platform}`);
@@ -242,12 +244,12 @@ export class ApplicationCommon {
242244
CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${deviceType}`);
243245
}
244246

245-
if (this.orientation) {
246-
CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${this.orientation}`);
247+
if (orientation) {
248+
CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${orientation}`);
247249
}
248250

249-
if (this.systemAppearance) {
250-
CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${this.systemAppearance}`);
251+
if (systemAppearance) {
252+
CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${systemAppearance}`);
251253
}
252254

253255
rootView.cssClasses.add(CSSUtils.ROOT_VIEW_CSS_CLASS);

0 commit comments

Comments
 (0)