GPII/prefsEditors — pull request #43 by chrispetsos (2014-03-07 11:17:19+00:00)
Title: GPII-648: Reflect system level changes in page when saving preferences.

Link to JIRA: http://issues.gpii.net/browse/GPII-648

This pull request tries to reflect changes in high contrast settings immediately in PMT, when user saves preferences.
In the architecture side, enabling highContrast will set the system-level theme. Modern browsers detect this and override any CSS defined with theme-specific styling. The problem is that when PMT changes highContrast and saves, there is no way of responding to that system-level change from within the page. From one perspective, one might argue that browsers should auto-detect this and override CSS instantly. This is not the case unfortunately (at least in Windows 7, FF that i've tested). I was also hoping the invkoking Fluid's refreshView() on panels would achieve this, but again this was not the case also.
Only way to achieve this was by reloading the whole page. Had to location.reload() onLogin, onLogout and after the AT applications refresh. Solution seems a bit awkward and degrades Ux and repsonsiveness with all those reloads but couldn't find something better and my 1d estimate for this JIRA run out!

A solution to this would be to tell browsers NOT to use system-level theme (FF has this, don't know of other browsers) and have control of in-page styling with enactors, like we did in the past...