SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.5k stars 258 forks source link

[framework | theming ]: UI5 Web component theme is overridden by windows OS high contrast theme #9436

Open pankajpandey01 opened 1 month ago

pankajpandey01 commented 1 month ago

Bug Description

UI5 Web component theme is overridden by windows OS high contrast theme Note: This issue is not present in sapui5 https://sapui5.netweaver.ondemand.com/sdk/#/controls.

Affected Component

No response

Expected Behaviour

Expected behavior: If the application offers selectable themes in its user settings, selected theme remain unmodified when the operating system setting is changed to light, dark, or any of the high contrast options. Reference: https://www.etsi.org/deliver/etsi_en/301500_301599/301549/03.02.01_60/en_301549v030201p.pdf (11.7 User Preferences)

Isolated Example

No response

Steps to Reproduce

  1. Set windows OS -> contrast themes -> Aquatic
  2. Go to https://sap.github.io/ui5-webcomponents/components/
  3. change settings->theme

Observed that ui5-webcomponents page uses OS theme. There is no effect of changing theme.

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

2.0.1

Browser

Chrome, Edge, Firefox, Safari

Operating System

Windows 11

Additional Context

This issue is not present in sapui5 https://sapui5.netweaver.ondemand.com/sdk/#/controls.

Organization

SuccessFactors

Declaration

GerganaKremenska commented 1 month ago

Hello @SAP/ui5-webcomponents-topic-core,

I am forwarding this issue to you as it is reproducible.

Screenshot 2024-07-10 at 8 16 08

But i am not sure that this is an issue, missing feature or desired outcome.

In sapui5 is achived with .sapUiBody{ forced-color-adjust: none; }

Please take over.

Best Regards, Gergana