fomantic / Fomantic-UI

Fomantic-UI is the official community fork of Semantic-UI
https://fomantic-ui.com
MIT License
3.52k stars 329 forks source link

[CSS] Update CSS as `-ms-high-constrast` is in the process of being deprecated #3062

Open KiddoV opened 2 weeks ago

KiddoV commented 2 weeks ago

Bug Report

Please do not use -ms-high-constrast in CSS any more since it will be deprecated. See: https://blogs.windows.com/msedgedev/2024/04/29/deprecating-ms-high-contrast/

Currently my console has a lot of this annoying warning.

[Deprecation] -ms-high-constrast is in the process of being deprecated. Please see https://blogs.windows.com/msedgedev/2024/04/29/deprecating-ms-high-contrast/ for tips on updating to the new Forced Colors Mode standard.

Screenshot (if possible)

warning

lubber-de commented 2 weeks ago

This setting is only used (3 times in total) to detect IE11 via

@media all and (-ms-high-contrast: none) {
/* IE 11 specific code*/
}

All IE11 related code will be removed in 2.10 as decided by the community

if you want to have it removed earlier, change the LESS variable

https://github.com/fomantic/Fomantic-UI/blob/c48cd9d6b80720fdcddbd81b62dc0b20f5e02022/src/themes/default/globals/site.variables#L6

to

@supportIE: false;

and rebuild Fomantic.

KiddoV commented 2 weeks ago

Since I use FUI via NPM, I will wait for v2.10 then. Thanks!