@atlaskit/editor-plugin-status 7.1.12 → 7.1.13
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-status
|
|
2
2
|
|
|
3
|
+
## 7.1.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5eea57aaf3729`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5eea57aaf3729) -
|
|
8
|
+
[ux] [ENGHEALTH-40475] increase opacity for status picker placeholder to comply with WCAG color
|
|
9
|
+
contrast ratio
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 7.1.12
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -10,6 +10,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
13
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
14
|
var _statusNodeSpec = require("./statusNodeSpec");
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -45,7 +46,8 @@ var StatusNodeView = exports.StatusNodeView = /*#__PURE__*/function () {
|
|
|
45
46
|
value: function setPlaceholder() {
|
|
46
47
|
if (this.textContainer && this.domElement) {
|
|
47
48
|
this.textContainer.textContent = this.intl.formatMessage(_messages.statusMessages.placeholder);
|
|
48
|
-
|
|
49
|
+
var opacity = (0, _platformFeatureFlags.fg)('platform_editor_a11y_status_picker') ? '0.83' : '0.5';
|
|
50
|
+
this.domElement.style.setProperty('opacity', opacity);
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { statusMessages as messages } from '@atlaskit/editor-common/messages';
|
|
3
3
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { statusToDOM } from './statusNodeSpec';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -35,7 +36,8 @@ export class StatusNodeView {
|
|
|
35
36
|
setPlaceholder() {
|
|
36
37
|
if (this.textContainer && this.domElement) {
|
|
37
38
|
this.textContainer.textContent = this.intl.formatMessage(messages.placeholder);
|
|
38
|
-
|
|
39
|
+
const opacity = fg('platform_editor_a11y_status_picker') ? '0.83' : '0.5';
|
|
40
|
+
this.domElement.style.setProperty('opacity', opacity);
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
|
|
@@ -3,6 +3,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import { statusMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { statusToDOM } from './statusNodeSpec';
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -39,7 +40,8 @@ export var StatusNodeView = /*#__PURE__*/function () {
|
|
|
39
40
|
value: function setPlaceholder() {
|
|
40
41
|
if (this.textContainer && this.domElement) {
|
|
41
42
|
this.textContainer.textContent = this.intl.formatMessage(messages.placeholder);
|
|
42
|
-
|
|
43
|
+
var opacity = fg('platform_editor_a11y_status_picker') ? '0.83' : '0.5';
|
|
44
|
+
this.domElement.style.setProperty('opacity', opacity);
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-status",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.13",
|
|
4
4
|
"description": "Status plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
39
39
|
"@atlaskit/status": "^3.0.0",
|
|
40
40
|
"@atlaskit/theme": "^21.0.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^14.
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^14.6.0",
|
|
42
42
|
"@atlaskit/tokens": "^8.4.0",
|
|
43
43
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
@@ -105,6 +105,9 @@
|
|
|
105
105
|
},
|
|
106
106
|
"platform-lozenge-custom-letterspacing": {
|
|
107
107
|
"type": "boolean"
|
|
108
|
+
},
|
|
109
|
+
"platform_editor_a11y_status_picker": {
|
|
110
|
+
"type": "boolean"
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
}
|