ibm-js / delite

HTML Custom Element / Widget infrastructure
http://ibm-js.github.io/delite/
Other
68 stars 28 forks source link

support high contrast mode detection #424

Closed wkeese closed 9 years ago

wkeese commented 9 years ago

Most widgets don't need special code to support high-contrast mode, because when the user sets the OS to high-contrast mode, the browser automatically changes text color and font-size according to the OS's setting.

However, deliteful/ProgressIndicator is an exception because it uses SVG, and the browser does not adjust the colors within SVG DOM.

Therefore, add high-contrast detection code to delite, similar to dojo core's hccss.js.

Some possible debate points about this PR:

See also ibm-js/deliteful#585.