Skip to content

Commit 826765a

Browse files
authored
Disable dark theme in until chat history has dark theme support (#4864)
* Disable dark theme * Disable dark theme * Revert * Add PR number
1 parent 155aecd commit 826765a

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2222

2323
## [Unreleased]
2424

25+
### Fixed
26+
27+
- 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)
28+
2529
### Added
2630

2731
- 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)

packages/component/src/Styles/StyleSet/LinkDefinitions.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import {
2-
DARK_THEME_SELECTOR,
3-
FORCED_COLORS_SELECTOR,
4-
LIGHT_THEME_SELECTOR,
5-
NOT_FORCED_COLORS_SELECTOR
6-
} from './Constants';
1+
import { FORCED_COLORS_SELECTOR, NOT_FORCED_COLORS_SELECTOR } from './Constants';
2+
3+
// TODO: Temporarily disable dark theme until chat history support dark theme.
4+
const DARK_THEME_SELECTOR = '@media (forced-colors: none) and not (forced-colors: none)'; // Always return false
5+
const LIGHT_THEME_SELECTOR = '@media (forced-colors: none)';
76

87
import CSSTokens from '../CSSTokens';
98

packages/component/src/Styles/StyleSet/ModalDialog.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import {
2-
DARK_THEME_SELECTOR,
3-
FORCED_COLORS_SELECTOR,
4-
LIGHT_THEME_SELECTOR,
5-
NOT_FORCED_COLORS_SELECTOR
6-
} from './Constants';
1+
import { FORCED_COLORS_SELECTOR, NOT_FORCED_COLORS_SELECTOR } from './Constants';
2+
3+
// TODO: Temporarily disable dark theme until we defined the link color and stuff for Markdown.
4+
const DARK_THEME_SELECTOR = '@media (forced-colors: none) and not (forced-colors: none)'; // Always return false
5+
const LIGHT_THEME_SELECTOR = '@media (forced-colors: none)';
76

87
import CSSTokens from '../CSSTokens';
98

0 commit comments

Comments
 (0)