{titleText}
diff --git a/packages/main/src/components/ObjectPageSubSection/ObjectPageSubSection.module.css b/packages/main/src/components/ObjectPageSubSection/ObjectPageSubSection.module.css
index f8bb32d3d5d..5e09124e550 100644
--- a/packages/main/src/components/ObjectPageSubSection/ObjectPageSubSection.module.css
+++ b/packages/main/src/components/ObjectPageSubSection/ObjectPageSubSection.module.css
@@ -1,11 +1,10 @@
.objectPageSubSection:focus {
outline: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);
- outline-offset: calc(-1 * var(--sapContent_FocusWidth));
+ outline-offset: calc(-1 * var(--sapContent_FocusWidth) + 4px);
}
.headerContainer {
- margin-block-end: 0.5rem;
-
+ min-height: 2rem;
> :first-child {
margin-inline: 0 0.25rem;
}
@@ -15,6 +14,11 @@
> *:not(:first-child):not(:last-child) {
margin-inline: 0.25rem;
}
+ position: sticky;
+ background: var(--sapBackgroundColor);
+ /*-1 -> subpixel rounding errors */
+ inset-block-start: calc(var(--_ui5wcr_ObjectPage_header_height) - 1px);
+ z-index: 3;
}
.subSectionTitle {
@@ -28,6 +32,7 @@
background-color: var(--_ui5wcr_ObjectPage_SubSectionBackgroundColor);
border-radius: var(--_ui5wcr_ObjectPage_SubSectionBorderRadius);
padding-block: 0.5rem;
+ margin-block-start: 0.5rem;
}
.spacer {