Some messages do not show up correctly on a dark background when built-in dark mode is disabled #7
Labels
🛡 Priority: Medium
Issue is of medium priority
⏰ Status: Confirmed
Issue has been reproduced
🗃 Type: Bug
Something isn't working
Describe the bug
Originally reported by Derrick. When the built-in Outlook dark mode is not enabled (and sometimes it is completely disabled by admins on O365), some messages do not show up correctly on a dark background. There are currently styles to try to force message text to display as a lighter color, but this does not always work as there are an infinite amount of ways an email can be structured.
This is an issue both while writing and viewing emails.
Potential solutions:
{"IsDarkmode":true}
. In testing this endpoint seems to be blocked by CORS, so I'm unsure if forcing a request through would have any effect. Manually replaying the XHR does nothing either. Interestingly, this request is triggered when updating thethemeData.IsDarkTheme
property via React DevTools, although changing the property doesn't actually update the page.$r.props.themeData.IsDarkTheme
. This could be challenging because it seems like Outlook exclusively uses props instead of state, and I'm not aware of a method of updating the props and triggering an update after the props are first defined. We may have to modify the relevant property before any React components are loaded if using this approach.{"__type":"UpdateUserConfigurationJsonRequest:#Exchange","Header":{"__type":"JsonRequestHeaders:#Exchange","RequestServerVersion":"V2018_01_08","TimeZoneContext":{"__type":"TimeZoneContext:#Exchange","TimeZoneDefinition":{"__type":"TimeZoneDefinitionType:#Exchange","Id":"Mountain Standard Time"}}},"Body":{"__type":"UpdateUserConfigurationOwaRequest:#Exchange","UserConfiguration":{"__type":"ServiceUserConfiguration:#Exchange","UserConfigurationName":{"__type":"UserConfigurationNameType:#Exchange","BaseFolderId":{"__type":"DistinguishedFolderId:#Exchange","Id":"root"},"Name":"OWA.UserOptions"},"Dictionary":[{"__type":"UserConfigurationDictionaryEntry:#Exchange","DictionaryKey":{"__type":"UserConfigurationDictionaryObject:#Exchange","Type":"String","Value":["isDarkModeTheme"]},"DictionaryValue":{"__type":"UserConfigurationDictionaryObject:#Exchange","Type":"Boolean","Value":["true"]}}]}}}
. This seems to be the endpoint that actually updates user configuration.The text was updated successfully, but these errors were encountered: