Skip to content

Commit

Permalink
fix(core): translucent now applies in iOS theme not depending on iOS …
Browse files Browse the repository at this point in the history
…device
  • Loading branch information
nolimits4web committed Jun 1, 2023
1 parent b3b10b2 commit 06b8970
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/components/app/app-class.js
Expand Up @@ -291,11 +291,10 @@ class Framework7 extends Framework7Class {
$('html').removeClass('ios md').addClass(app.theme);

// iOS Translucent
const device = app.device;
if (app.params.iosTranslucentBars && app.theme === 'ios' && device.ios) {
if (app.params.iosTranslucentBars && app.theme === 'ios') {
$('html').addClass('ios-translucent-bars');
}
if (app.params.iosTranslucentModals && app.theme === 'ios' && device.ios) {
if (app.params.iosTranslucentModals && app.theme === 'ios') {
$('html').addClass('ios-translucent-modals');
}

Expand Down

0 comments on commit 06b8970

Please sign in to comment.