Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions packages/main/src/components/ObjectPage/ObjectPage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,15 @@
z-index: 4;
}

.tabContainerSpacer {
height: 3px;
background: var(--sapObjectHeader_Background);
}

.tabContainer {
position: sticky;
z-index: 3;
background: var(--sapObjectHeader_Background);
padding-block-start: 3px;
&::after {
content: '';
pointer-events: none;
position: absolute;
height: 1px;
inset-block-end: -1px;
inset-inline-start: 0;
width: 100%;
box-shadow: var(--sapContent_HeaderShadow);
}
}

.tabContainerComponent {
Expand All @@ -130,7 +124,6 @@
&::part(tabstrip) {
padding: 0;
padding-inline: var(--_ui5wcr_ObjectPage_tab_bar_inline_padding);
box-shadow: none;
}
}

Expand Down
2 changes: 2 additions & 0 deletions packages/main/src/components/ObjectPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,8 @@ const ObjectPage = forwardRef<ObjectPageDomRef, ObjectPagePropTypes>((props, ref
: `${topHeaderHeight}px`,
}}
>
{/* Spacer required to prevent overlapping of tabbar btns and expand/pin btns*/}
<div aria-hidden="true" className={classNames.tabContainerSpacer} />
<TabContainer
collapsed
onTabSelect={handleTabSelect}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('ObjectPageTitle', () => {
);
// no nav actions
// The overflow breadcrumbs button requires time until it's mounted -> value can be different initially
cy.findByTestId('breadcrumbs').parent().should('have.css', 'width', '1793px' /*100%*/);
cy.findByTestId('breadcrumbs').parent().should('have.css', 'width', '1808px' /*100%*/);
cy.mount(
<PageComponent
titleProps={{
Expand All @@ -93,10 +93,10 @@ describe('ObjectPageTitle', () => {
/>,
);
// nav actions in actions toolbar
cy.findByTestId('breadcrumbs').parent().should('have.css', 'width', '1793px' /*100%*/);
cy.findByTestId('breadcrumbs').parent().should('have.css', 'width', '1808px' /*100%*/);
cy.viewport(1000, 1000);
// w/ nav actions
cy.findByTestId('breadcrumbs').parent().should('have.css', 'width', '452.5px' /*50% (min-width)*/);
cy.findByTestId('breadcrumbs').parent().should('have.css', 'width', '460px' /*50% (min-width)*/);
});

it('expandedContent & snappedContent', () => {
Expand Down