@vaadin/rich-text-editor 24.0.5 → 24.1.0-alpha10

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/README.md CHANGED
@@ -13,7 +13,7 @@ An input field web component for entering rich text.
13
13
  <vaadin-rich-text-editor></vaadin-rich-text-editor>
14
14
  ```
15
15
 
16
- [<img src="https://raw.githubusercontent.com/vaadin/web-components/master/packages/rich-text-editor/screenshot.png" width="656" alt="Screenshot of vaadin-rich-text-editor">](https://vaadin.com/docs/latest/components/rich-text-editor)
16
+ [<img src="https://raw.githubusercontent.com/vaadin/web-components/main/packages/rich-text-editor/screenshot.png" width="656" alt="Screenshot of vaadin-rich-text-editor">](https://vaadin.com/docs/latest/components/rich-text-editor)
17
17
 
18
18
  ## Installation
19
19
 
@@ -32,7 +32,7 @@ import '@vaadin/rich-text-editor';
32
32
  ## Themes
33
33
 
34
34
  Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/styling), Lumo and Material.
35
- The [main entrypoint](https://github.com/vaadin/web-components/blob/master/packages/rich-text-editor/vaadin-rich-text-editor.js) of the package uses the Lumo theme.
35
+ The [main entrypoint](https://github.com/vaadin/web-components/blob/main/packages/rich-text-editor/vaadin-rich-text-editor.js) of the package uses the Lumo theme.
36
36
 
37
37
  To use the Material theme, import the component from the `theme/material` folder:
38
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/rich-text-editor",
3
- "version": "24.0.5",
3
+ "version": "24.1.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -40,14 +40,14 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@polymer/polymer": "^3.0.0",
43
- "@vaadin/button": "~24.0.5",
44
- "@vaadin/component-base": "~24.0.5",
45
- "@vaadin/confirm-dialog": "~24.0.5",
46
- "@vaadin/text-field": "~24.0.5",
47
- "@vaadin/tooltip": "~24.0.5",
48
- "@vaadin/vaadin-lumo-styles": "~24.0.5",
49
- "@vaadin/vaadin-material-styles": "~24.0.5",
50
- "@vaadin/vaadin-themable-mixin": "~24.0.5"
43
+ "@vaadin/button": "24.1.0-alpha10",
44
+ "@vaadin/component-base": "24.1.0-alpha10",
45
+ "@vaadin/confirm-dialog": "24.1.0-alpha10",
46
+ "@vaadin/text-field": "24.1.0-alpha10",
47
+ "@vaadin/tooltip": "24.1.0-alpha10",
48
+ "@vaadin/vaadin-lumo-styles": "24.1.0-alpha10",
49
+ "@vaadin/vaadin-material-styles": "24.1.0-alpha10",
50
+ "@vaadin/vaadin-themable-mixin": "24.1.0-alpha10"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@esm-bundle/chai": "^4.3.4",
@@ -62,5 +62,5 @@
62
62
  "web-types.json",
63
63
  "web-types.lit.json"
64
64
  ],
65
- "gitHead": "e384c1b5c02e01a4382a433f727d075de9a4ee97"
65
+ "gitHead": "12e39be7eb3b49c68708e8ca3de2fb22e91051a1"
66
66
  }
@@ -35,8 +35,16 @@ export const buttonsStyles = css`
35
35
  outline: none;
36
36
  }
37
37
 
38
- [part~='toolbar-button'][on] {
39
- background-color: #eee;
38
+ @media (forced-colors: active) {
39
+ [part~='toolbar-button']:focus,
40
+ [part~='toolbar-button']:hover {
41
+ outline: 1px solid !important;
42
+ }
43
+
44
+ [part~='toolbar-button'][on] {
45
+ outline: 2px solid;
46
+ outline-offset: -1px;
47
+ }
40
48
  }
41
49
 
42
50
  [part~='toolbar-button']::before {
@@ -48,8 +48,8 @@ const richTextEditor = css`
48
48
  }
49
49
 
50
50
  [part~='toolbar-button'][on] {
51
- background-color: var(--lumo-primary-color-10pct);
52
- color: var(--lumo-primary-text-color);
51
+ background-color: var(--lumo-primary-color);
52
+ color: var(--lumo-primary-contrast-color);
53
53
  }
54
54
 
55
55
  [part~='toolbar-button']:active {
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/rich-text-editor",
4
- "version": "24.0.5",
4
+ "version": "24.1.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/rich-text-editor",
4
- "version": "24.0.5",
4
+ "version": "24.1.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {