@unicef-polymer/etools-form-builder 3.1.8 → 3.1.9

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.
@@ -15,6 +15,7 @@ let RichText = class RichText extends LitElement {
15
15
  const { selection, readonly, node } = this;
16
16
  return html `<main>
17
17
  <rich-toolbar
18
+ part="rich-toolbar"
18
19
  ?hidden="${this.readonly}"
19
20
  .selection="${selection}"
20
21
  .node="${node}"
@@ -29,6 +30,7 @@ let RichText = class RichText extends LitElement {
29
30
  }}
30
31
  ></rich-toolbar>
31
32
  <rich-viewer
33
+ part="rich-viewer"
32
34
  ?readonly="${readonly}"
33
35
  .value="${this.value}"
34
36
  @selection=${(e) => {
@@ -63,6 +65,7 @@ RichText.styles = css `
63
65
  --rich-action-active-color: red;
64
66
  --icon-size: 24px;
65
67
  border: solid 1px var(--rich-border-color, #eeeeee);
68
+ background-color: #ffffff;
66
69
  width: 100%;
67
70
  }
68
71
  main {
@@ -93,9 +96,6 @@ RichText.styles = css `
93
96
  background-color: var(--rich-background);
94
97
  color: var(--rich-color);
95
98
  }
96
- rich-viewer[readonly] {
97
- background-color: #eeeeee;
98
- }
99
99
  main {
100
100
  grid-template-rows: auto 1fr;
101
101
  grid-template-areas:
@@ -54,9 +54,6 @@ RichViewer.styles = css `
54
54
  border: none;
55
55
  outline: none;
56
56
  }
57
- article[contenteditable='false'] {
58
- background-color: #ffffff;
59
- }
60
57
  blockquote {
61
58
  margin-inline-start: 8px;
62
59
  margin-inline-end: 8px;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unicef-polymer/etools-form-builder",
3
3
  "description": "Etools FM Form Builder components",
4
- "version": "3.1.8",
4
+ "version": "3.1.9",
5
5
  "type": "module",
6
6
  "contributors": [
7
7
  "eTools Team"