Describe the bug
The collapse/expand button (ObjectPageAnchorBarExpandBtn) in the ObjectPage
AnchorBar does not apply the correct hover background color. On hover, the button
stays #ffffff (from --sapObjectHeader_Background) instead of switching to
--sapButton_Hover_Background (#EAECEE).
This was flagged by the SAP UXC Scanner (UXC-010 Colors rule) and verified by
DOM inspection.
Root cause: The _anchorBarActionButton CSS class sets background-color: var(--sapObjectHeader_Background) on the host element. Per CSS Shadow DOM cascade
rules, external document styles targeting a custom element host take precedence
over the shadow DOM's :host:hover rule — so the UI5 button's internal hover
style never fires.
Isolated Example
Reproduced on the official Storybook (no custom CSS): https://ui5.github.io/webcomponents-react/v2/?path=/docs/layouts-floorplans-object page--docs
Reproduction steps
- Render an ObjectPage with a headerArea (see Storybook default example)
- Hover over the collapse (∧) or expand (∨) button in the AnchorBar
- Observe the button background color
Expected Behaviour
Button background changes to var(--sapButton_Hover_Background) = #EAECEE on
hover, as defined by the SAP Fiori design token for Standard Button hover state.
Screenshots or Videos
UI5 Web Components for React Version
2.26.0
UI5 Web Components Version
2.26.0
Browser
Chrome
Operating System
No response
Additional Context
No response
Relevant log output
Organization
No response
Declaration
Describe the bug
The collapse/expand button (
ObjectPageAnchorBarExpandBtn) in the ObjectPageAnchorBar does not apply the correct hover background color. On hover, the button
stays
#ffffff(from--sapObjectHeader_Background) instead of switching to--sapButton_Hover_Background(#EAECEE).This was flagged by the SAP UXC Scanner (UXC-010 Colors rule) and verified by
DOM inspection.
Root cause: The
_anchorBarActionButtonCSS class setsbackground-color: var(--sapObjectHeader_Background)on the host element. Per CSS Shadow DOM cascaderules, external document styles targeting a custom element host take precedence
over the shadow DOM's
:host:hoverrule — so the UI5 button's internal hoverstyle never fires.
Isolated Example
Reproduced on the official Storybook (no custom CSS): https://ui5.github.io/webcomponents-react/v2/?path=/docs/layouts-floorplans-object page--docs
Reproduction steps
Expected Behaviour
Button background changes to
var(--sapButton_Hover_Background)=#EAECEEonhover, as defined by the SAP Fiori design token for Standard Button hover state.
Screenshots or Videos
UI5 Web Components for React Version
2.26.0
UI5 Web Components Version
2.26.0
Browser
Chrome
Operating System
No response
Additional Context
No response
Relevant log output
Organization
No response
Declaration