@atlaskit/editor-plugin-block-type 10.2.9 → 10.2.11

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,20 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 10.2.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3ff392895f5d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3ff392895f5d3) -
8
+ [ux] A11y issue fix: The fallback colors used for menu items are not accessible and does not match
9
+ with tokens
10
+ - Updated dependencies
11
+
12
+ ## 10.2.10
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 10.2.9
4
19
 
5
20
  ### Patch Changes
@@ -7,6 +7,7 @@ exports.wrapperSmallStyle = exports.keyboardShortcutSelect = exports.keyboardSho
7
7
  var _react = require("@emotion/react");
8
8
  var _styles = require("@atlaskit/editor-common/styles");
9
9
  var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
10
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
11
  var _colors = require("@atlaskit/theme/colors");
11
12
  /**
12
13
  * @jsxRuntime classic
@@ -16,7 +17,7 @@ var _colors = require("@atlaskit/theme/colors");
16
17
 
17
18
  var blockTypeMenuItemStyle = exports.blockTypeMenuItemStyle = function blockTypeMenuItemStyle(tagName, selected, typographyTheme) {
18
19
  // TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
19
- var selectedStyle = selected ? "".concat(tagName, " { color: ", "var(--ds-text, white)", " !important; }") : '';
20
+ var selectedStyle = selected ? "".concat(tagName, " { color: ", "var(--ds-text, ".concat((0, _platformFeatureFlags.fg)('platform_editor_updated_block_type_colors_a11y') ? '#292A2E' : 'white', ")"), " !important; }") : '';
20
21
  return function () {
21
22
  return (0, _react.css)(
22
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -6,10 +6,11 @@
6
6
  import { css } from '@emotion/react';
7
7
  import { headingsSharedStyles, blockquoteSharedStyles } from '@atlaskit/editor-common/styles';
8
8
  import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { N400 } from '@atlaskit/theme/colors';
10
11
  export const blockTypeMenuItemStyle = (tagName, selected, typographyTheme) => {
11
12
  // TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
12
- const selectedStyle = selected ? `${tagName} { color: ${"var(--ds-text, white)"} !important; }` : '';
13
+ const selectedStyle = selected ? `${tagName} { color: ${`var(--ds-text, ${fg('platform_editor_updated_block_type_colors_a11y') ? '#292A2E' : 'white'})`} !important; }` : '';
13
14
  return () => css(
14
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
15
16
  tagName === 'blockquote' ? blockquoteSharedStyles : headingsSharedStyles(typographyTheme), {
@@ -6,10 +6,11 @@
6
6
  import { css } from '@emotion/react';
7
7
  import { headingsSharedStyles, blockquoteSharedStyles } from '@atlaskit/editor-common/styles';
8
8
  import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { N400 } from '@atlaskit/theme/colors';
10
11
  export var blockTypeMenuItemStyle = function blockTypeMenuItemStyle(tagName, selected, typographyTheme) {
11
12
  // TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
12
- var selectedStyle = selected ? "".concat(tagName, " { color: ", "var(--ds-text, white)", " !important; }") : '';
13
+ var selectedStyle = selected ? "".concat(tagName, " { color: ", "var(--ds-text, ".concat(fg('platform_editor_updated_block_type_colors_a11y') ? '#292A2E' : 'white', ")"), " !important; }") : '';
13
14
  return function () {
14
15
  return css(
15
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "10.2.9",
3
+ "version": "10.2.11",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,7 +30,7 @@
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
32
  "@atlaskit/adf-schema": "^51.4.0",
33
- "@atlaskit/css": "^0.15.0",
33
+ "@atlaskit/css": "^0.16.0",
34
34
  "@atlaskit/editor-plugin-analytics": "^6.2.0",
35
35
  "@atlaskit/editor-plugin-block-menu": "^5.0.0",
36
36
  "@atlaskit/editor-plugin-list": "^8.2.0",
@@ -47,17 +47,17 @@
47
47
  "@atlaskit/icon-lab": "^5.12.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
49
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
50
- "@atlaskit/primitives": "^16.1.0",
50
+ "@atlaskit/primitives": "^16.2.0",
51
51
  "@atlaskit/prosemirror-history": "^0.2.0",
52
52
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
53
53
  "@atlaskit/theme": "^21.0.0",
54
- "@atlaskit/tmp-editor-statsig": "^13.38.0",
55
- "@atlaskit/tokens": "^8.0.0",
54
+ "@atlaskit/tmp-editor-statsig": "^13.39.0",
55
+ "@atlaskit/tokens": "^8.1.0",
56
56
  "@babel/runtime": "^7.0.0",
57
57
  "@emotion/react": "^11.7.1"
58
58
  },
59
59
  "peerDependencies": {
60
- "@atlaskit/editor-common": "^110.32.0",
60
+ "@atlaskit/editor-common": "^110.33.0",
61
61
  "react": "^18.2.0",
62
62
  "react-dom": "^18.2.0",
63
63
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -109,6 +109,9 @@
109
109
  }
110
110
  },
111
111
  "platform-feature-flags": {
112
+ "platform_editor_updated_block_type_colors_a11y": {
113
+ "type": "boolean"
114
+ },
112
115
  "platform_editor_toolbar_responsive_fixes": {
113
116
  "type": "boolean"
114
117
  },