Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: OnsenMobileTheme - Fixed an issue where the login background does not appear #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SeanChristanto
Copy link

@SeanChristanto SeanChristanto commented Oct 8, 2024

Cause(s)

This issue occurs because of how Onsen UI works. Onsen UI uses pages to display content, and these pages cover the entire viewport. When a background image is applied to the <body>, it won't be visible because the <ons-page> elements overlay the body, preventing the background from appearing.

Change(s)

Overrode the getLoginForm() to add the bacgkround to the content inside the <ons-page>, rather than the body

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