-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Fab buttons will be displayed under the ion-item-divider when not sticky #8489
Comments
@alan-agius4 what issue is causing to have z-index in non-sticky item dividers? |
Apologies, updated previous comment. Actually, now that I am having a look at it again. I am not sure if the fab should show over the divider even when sticky |
ok, looks like this is a real issue! the screenshot really made the difference, I understand perfectly what is going on.
yes, the fab should show over a sticky divider as well |
can you share the markup? |
z-index of the fab is Markup to replicate below <ion-content>
<ion-fab>
<button ion-fab>Button</button>
</ion-fab>
<ion-item-group>
<ion-item-divider>Games</ion-item-divider>
<ion-item>Pokémon Yellow</ion-item>
<ion-item>Super Metroid</ion-item>
<ion-item>Mega Man X</ion-item>
</ion-item-group>
</ion-content> |
|
Not as per documention "To divide groups of items, use |
@alan-agius4 so here's the thing. I understand the issue, but I can't reproduce it!! it works ok in my machine surprisingly. |
Thats odd, you are using RC 0? And same markup? On Wednesday, 5 October 2016, Manu Mtz.-Almeida [email protected]
|
yes, RC0 <ion-header>
<ion-toolbar>
<ion-title>Floating Action Buttons</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-fab>
<button ion-fab>Button</button>
</ion-fab>
<ion-item-group>
<ion-item-divider>Games</ion-item-divider>
<ion-item>Pokémon Yellow</ion-item>
<ion-item>Super Metroid</ion-item>
<ion-item>Mega Man X</ion-item>
</ion-item-group>
</ion-content> |
Seems like you managed to replicate it now :) On Wednesday, 5 October 2016, Manu Mtz.-Almeida [email protected] Floating Action Buttons Button |
@alan-agius4 I don't think so... the fab button is over the divider |
Right, well, i dont know :/ why i am having that issue than. On Wednesday, 5 October 2016, Manu Mtz.-Almeida [email protected]
|
@alan-agius4 We are both missing something for sure haha!
|
Found the issue :), I have the ion-fab button inside a custom component. Repo: Also, even something like the below will cause the issue <template [ngIf]="1 === 1">
<ion-fab>
<button ion-fab>Button</button>
</ion-fab>
</template> |
fixed! 14e668c I didn't merge your PR since it didn't fix the root of the problem, but thank you anyway, your help resolving this issue has been amazing! |
cool :) |
Fab buttons will be displayed under the ion-item-divider when not sticky, As ion-item-divider has a z-index even when not sticky
Short description of the problem:
z-index is applied on ion-item-divider when might not be needed when it's not sticky
What behavior are you expecting?
No z-index applied and Fab button to be displayed on top of the ion-item-divider
Ionic 2.
The text was updated successfully, but these errors were encountered: