Closed c5369706 closed 4 months ago
Hi @c5369706 ,
unfortunately we cannot control this behaviour on web components level.
In order to avoid it, you need to add this CSS styles to your application:
html, body { forced-color-adjust: none; }
Note that, there is a known issue, regarding that property and you may need to also add a background-color to your html element.
I hope you find that helpful. Best regards, Petya Markova. (UI5 Dispatcher)
Thanks for supporting on this.
Bug Description
Observed Behavior: The application is adapted to the operating system themes on selecting ** the ‘Aquatic, Desert, Dusk and Night sky’ themes in the operating system settings.
Expected Behavior: The application should not be adapted to the operating system themes on selecting the ‘Aquatic, Desert, Dusk and Night sky’ themes in the operating system settings.
**
[{}“Note: The issue reported above persists throughout application. Hence, it should be corrected for all the occurrences.”]{}
Affected Component
@ui5/webcomponents-base/dist/config/Theme
Expected Behaviour
Expected Behavior: The application should not be adapted to the operating system themes on selecting the ‘Aquatic, Desert, Dusk and Night sky’ themes in the operating system settings.
Isolated Example
No response
Steps to Reproduce
Screen Flow:
Log Output, Stack Trace or Screenshots
https://github.com/SAP/ui5-webcomponents/assets/168708496/696cdc63-1f59-44b6-b60c-6a8111e56c81
Priority
Medium
UI5 Web Components Version
1.17.0
Browser
Chrome
Operating System
Windows
Additional Context
No response
Organization
SAP
Declaration