Skip to content

Commit

Permalink
refactor(mon-pix): custom beta-banner z-index in details page
Browse files Browse the repository at this point in the history
 Co-authored-by: Yann Bertrand <[email protected]>
 Co-authored-by: Clément Latzarus <[email protected]>
  • Loading branch information
dianeCdrPix authored Nov 7, 2024
1 parent ef4de42 commit ebc5e0b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
3 changes: 0 additions & 3 deletions mon-pix/app/components/module/_beta-banner.scss

This file was deleted.

2 changes: 1 addition & 1 deletion mon-pix/app/components/module/beta-banner.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import PixBanner from '@1024pix/pix-ui/components/pix-banner';
import { t } from 'ember-intl';

<template>
<PixBanner class="beta-banner" @type="communication">
<PixBanner @type="communication">
{{t "pages.modulix.beta-banner"}}
</PixBanner>
</template>
1 change: 0 additions & 1 deletion mon-pix/app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ of an adaptative/mobile-first approach — refactoring is welcome here */
@import 'components/levelup-notif';
@import 'components/login-form';
@import 'components/login-or-register';
@import '../components/module/beta-banner';
@import '../components/module/details';
@import '../components/module/feedback';
@import '../components/module/grain';
Expand Down
6 changes: 6 additions & 0 deletions mon-pix/app/styles/pages/_module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@
color: var(--pix-neutral-900);
background: var(--pix-neutral-0);
}

.modulix-beta-banner {
--modulix-z-index-above-all: 2;

z-index: var(--modulix-z-index-above-all);
}
4 changes: 3 additions & 1 deletion mon-pix/app/templates/module/details.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<Module::BetaBanner />
<div class="modulix-beta-banner">
<Module::BetaBanner />
</div>
<nav>
<ul>
<li>
Expand Down

0 comments on commit ebc5e0b

Please sign in to comment.