diff --git a/CHANGELOG.md b/CHANGELOG.md index bb740e3966..4542306e67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + +- Fixes [#4863](https://github.com/microsoft/BotFramework-WebChat/issues/4863). Disable dark theme for link references until chat history has dark theme support, by [@compulim](https://github.com/compulim), in PR [#4864](https://github.com/microsoft/BotFramework-WebChat/pull/4864) + ### Added - Resolves [#4853](https://github.com/microsoft/BotFramework-WebChat/issues/4853). Shorten URLs in link definitions UI, by [@compulim](https://github.com/compulim), in PR [#4860](https://github.com/microsoft/BotFramework-WebChat/pull/4860) diff --git a/packages/component/src/Styles/StyleSet/LinkDefinitions.ts b/packages/component/src/Styles/StyleSet/LinkDefinitions.ts index 9186ccdddc..247c23252d 100644 --- a/packages/component/src/Styles/StyleSet/LinkDefinitions.ts +++ b/packages/component/src/Styles/StyleSet/LinkDefinitions.ts @@ -1,9 +1,8 @@ -import { - DARK_THEME_SELECTOR, - FORCED_COLORS_SELECTOR, - LIGHT_THEME_SELECTOR, - NOT_FORCED_COLORS_SELECTOR -} from './Constants'; +import { FORCED_COLORS_SELECTOR, NOT_FORCED_COLORS_SELECTOR } from './Constants'; + +// TODO: Temporarily disable dark theme until chat history support dark theme. +const DARK_THEME_SELECTOR = '@media (forced-colors: none) and not (forced-colors: none)'; // Always return false +const LIGHT_THEME_SELECTOR = '@media (forced-colors: none)'; import CSSTokens from '../CSSTokens'; diff --git a/packages/component/src/Styles/StyleSet/ModalDialog.ts b/packages/component/src/Styles/StyleSet/ModalDialog.ts index be7a5e2ee2..48e81188c4 100644 --- a/packages/component/src/Styles/StyleSet/ModalDialog.ts +++ b/packages/component/src/Styles/StyleSet/ModalDialog.ts @@ -1,9 +1,8 @@ -import { - DARK_THEME_SELECTOR, - FORCED_COLORS_SELECTOR, - LIGHT_THEME_SELECTOR, - NOT_FORCED_COLORS_SELECTOR -} from './Constants'; +import { FORCED_COLORS_SELECTOR, NOT_FORCED_COLORS_SELECTOR } from './Constants'; + +// TODO: Temporarily disable dark theme until we defined the link color and stuff for Markdown. +const DARK_THEME_SELECTOR = '@media (forced-colors: none) and not (forced-colors: none)'; // Always return false +const LIGHT_THEME_SELECTOR = '@media (forced-colors: none)'; import CSSTokens from '../CSSTokens';