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

v4: fullscreen background content is not behind transparent header #15635

Closed
brandyscarney opened this issue Sep 17, 2018 · 1 comment
Closed
Assignees

Comments

@brandyscarney
Copy link
Member

Bug Report

Ionic Info

master branch

Describe the Bug
Using the following code:

<ion-header>
  <ion-toolbar style="--background: transparent">
    <ion-title>Toolbar</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content fullscreen style="--color: white; --background: url('https://images.unsplash.com/photo-1530579807716-d82c0991629a?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=8c708171e9cdb8ae7ed04f8e37e2808c&auto=format&fit=crop&w=934&q=80') no-repeat center center fixed">
  Content
</ion-content>

With the current way master is, the toolbar does not look transparent because it still appears to have a background, see the below image.

If we move the background declaration to the inner scroll element, we get the following:

cc @manucorporat

@ionitron-bot
Copy link

ionitron-bot bot commented Oct 24, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant