cancel
Showing results for 
Search instead for 
Did you mean: 

should we use conditonal statements to check for high contrast theme and apply the classes

gopalanand
Product and Topic Expert
Product and Topic Expert
0 Kudos

do we need to use conditional statements to determine the themes and then apply the classes for high contrast theme?

belize supports

@sapUiNegativeElement

where as belize_hcb/belize_hcw supports sapHC_NegativeColor.

What is the correct way to check for the them and then use the classes

Accepted Solutions (1)

Accepted Solutions (1)

Sharathmg
Active Contributor
0 Kudos

You will be creating separate themes based on belize/belize_hcb/belize_hcw, right?

If yes, then parameters relevant to that theme will be available to you.

Regards,

Sharath

gopalanand
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sharnath ,

Thanks for the response.

I faced this issue a month back, where i had to check for the highcontrast themes as @sapUiNegativeElement was not working properly. Later i had a conversation with the UX team and got to know that it was an issue of css libraryies as there were few highcontrast library which were not available in webide and thus colors were not changing.

Sharathmg
Active Contributor
0 Kudos

Could you help me understand your statement: "issue of css libraryies as there were few highcontrast library which were not available in webide". How does WebIDE have an impact on CSS libraries or vice versa?

Answers (0)