@uiw/codemirror-themes 4.21.10 → 4.21.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/index.js CHANGED
@@ -60,7 +60,7 @@ var createTheme = function createTheme(_ref) {
60
60
  themeOptions['.cm-activeLineGutter'] = activeLineGutterStyle;
61
61
  if (settings.selection) {
62
62
  themeOptions['&.cm-focused .cm-selectionBackground, &.cm-focused .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection'] = {
63
- backgroundColor: settings.selection + ' !important'
63
+ background: settings.selection + ' !important'
64
64
  };
65
65
  }
66
66
  if (settings.selectionMatch) {
package/esm/index.js CHANGED
@@ -54,7 +54,7 @@ export var createTheme = _ref => {
54
54
  themeOptions['.cm-activeLineGutter'] = activeLineGutterStyle;
55
55
  if (settings.selection) {
56
56
  themeOptions['&.cm-focused .cm-selectionBackground, &.cm-focused .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection'] = {
57
- backgroundColor: settings.selection + ' !important'
57
+ background: settings.selection + ' !important'
58
58
  };
59
59
  }
60
60
  if (settings.selectionMatch) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uiw/codemirror-themes",
3
- "version": "4.21.10",
3
+ "version": "4.21.12",
4
4
  "description": "Themes for CodeMirror.",
5
5
  "homepage": "https://uiwjs.github.io/react-codemirror/#/theme/doc",
6
6
  "author": "kenny wong <wowohoo@qq.com>",
package/src/index.tsx CHANGED
@@ -97,7 +97,7 @@ export const createTheme = ({ theme, settings = {}, styles = [] }: CreateThemeOp
97
97
  themeOptions[
98
98
  '&.cm-focused .cm-selectionBackground, &.cm-focused .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection'
99
99
  ] = {
100
- backgroundColor: settings.selection + ' !important',
100
+ background: settings.selection + ' !important',
101
101
  };
102
102
  }
103
103
  if (settings.selectionMatch) {