Skip to content

Commit 4649c57

Browse files
committed
fix(ObjectPage): adjust header shadow
1 parent acb1709 commit 4649c57

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

packages/main/src/components/ObjectPage/ObjectPage.module.css

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,21 +108,29 @@
108108
.tabContainer {
109109
position: sticky;
110110
z-index: 3;
111+
background: var(--sapObjectHeader_Background);
112+
padding-block-start: 3px;
113+
&::after {
114+
content: '';
115+
pointer-events: none;
116+
position: absolute;
117+
height: 1px;
118+
bottom: -1px;
119+
left: 0;
120+
width: 100%;
121+
box-shadow: var(--sapContent_HeaderShadow);
122+
}
111123
}
112124

113125
.tabContainerComponent {
114-
padding-block-start: 3px;
115-
background: var(--sapObjectHeader_Background);
116126
&::part(content) {
117127
display: none;
118128
}
119129

120130
&::part(tabstrip) {
121131
padding: 0;
122132
padding-inline: var(--_ui5wcr_ObjectPage_tab_bar_inline_padding);
123-
box-shadow:
124-
inset 0 -0.0625rem var(--sapPageHeader_BorderColor),
125-
0 0.125rem 0.25rem 0 rgb(0 0 0 / 8%);
133+
box-shadow: none;
126134
}
127135
}
128136

packages/main/src/components/ObjectPage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ const ObjectPage = forwardRef<ObjectPageDomRef, ObjectPagePropTypes>((props, ref
720720
className={classNames.tabContainer}
721721
data-component-name="ObjectPageTabContainer"
722722
style={{
723-
top:
723+
insetBlockStart:
724724
headerPinned || scrolledHeaderExpanded
725725
? `${topHeaderHeight + (headerCollapsed === true ? 0 : headerContentHeight)}px`
726726
: `${topHeaderHeight}px`,

0 commit comments

Comments
 (0)