Skip to content

Commit

Permalink
fix(dynamic-page): some remarks fixed (#9341)
Browse files Browse the repository at this point in the history
Co-authored-by: PetyaMarkovaBogdanova <[email protected]>
  • Loading branch information
PetyaMarkovaBogdanova and PetyaMarkovaBogdanova authored Jul 2, 2024
1 parent fcf4272 commit eb99114
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 28 deletions.
35 changes: 7 additions & 28 deletions packages/fiori/src/themes/DynamicPage.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.ui5-dynamic-page-title-header-wrapper {
position: sticky;
top: 0;
z-index: 1;
/* We need the z-index to be higher than in the header actions, to avoid overlapping by snap on scroll */
z-index: 2;
}

:host {
Expand Down Expand Up @@ -45,7 +46,9 @@
bottom: 0.5rem;
box-sizing: border-box;
z-index: 1;
opacity: 1;
opacity: 0;
transform: translateY(100%);
transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
}

.ui5-dynamic-page-spacer {
Expand All @@ -57,11 +60,8 @@
}

:host([show-footer]) .ui5-dynamic-page-footer {
animation: bounceShow 0.35s forwards ease-in-out;
}

:host(:not([show-footer])) .ui5-dynamic-page-footer {
animation: bounceHide 0.35s forwards ease-in-out;
transform: translateY(0);
opacity: 1;
}

::slotted([slot="footerArea"]) {
Expand All @@ -73,27 +73,6 @@
margin: 0 0.5rem 0.5rem 0.5rem;
}

/* Footer animation */
@keyframes bounceShow {
0% {
transform: translateY(100%);
opacity: 0;
}
100% {
opacity: 1;
}
}

@keyframes bounceHide {
0% {
transform: translateY(-5%);
opacity: 1;
}
100% {
transform: translateY(100%);
opacity: 0;
}
}

::slotted([slot="titleArea"]) {
width: auto;
Expand Down
2 changes: 2 additions & 0 deletions packages/fiori/src/themes/DynamicPageHeaderActions.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
position: absolute;
display: flex;
gap: 0.5rem;
/* We need the z-index to be lower than in the header, to avoid overlapping by snap on scroll */
z-index: 1;

&:before,
&:after {
Expand Down

0 comments on commit eb99114

Please sign in to comment.