@atlaskit/editor-plugin-floating-toolbar 4.1.0 → 4.1.1
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 +8 -0
- package/dist/cjs/ui/Dropdown.js +2 -0
- package/dist/es2019/ui/Dropdown.js +2 -0
- package/dist/esm/ui/Dropdown.js +2 -0
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 4.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#150643](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/150643)
|
|
8
|
+
[`ac4a612b39bbf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ac4a612b39bbf) -
|
|
9
|
+
[ux] Sets aria-expanded and aria-haspopup for the dropdown-overflow following a11y best practice
|
|
10
|
+
|
|
3
11
|
## 4.1.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/cjs/ui/Dropdown.js
CHANGED
|
@@ -18,6 +18,7 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
18
18
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
19
19
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
20
20
|
var _chevronDown2 = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-down"));
|
|
21
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
var _Divider = require("./Divider");
|
|
22
23
|
var _DropdownMenu = _interopRequireWildcard(require("./DropdownMenu"));
|
|
23
24
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -171,6 +172,7 @@ var Dropdown = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
171
172
|
selected: isOpen,
|
|
172
173
|
disabled: disabled,
|
|
173
174
|
tooltipContent: tooltip,
|
|
175
|
+
ariaHasPopup: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_8') ? true : undefined,
|
|
174
176
|
onMount: onMount,
|
|
175
177
|
pulse: pulse,
|
|
176
178
|
spotlightConfig: spotlightConfig
|
|
@@ -13,6 +13,7 @@ import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
|
|
|
13
13
|
import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
|
|
14
14
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
15
15
|
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
17
|
import { Divider } from './Divider';
|
|
17
18
|
import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
|
|
18
19
|
|
|
@@ -152,6 +153,7 @@ export default class Dropdown extends Component {
|
|
|
152
153
|
selected: isOpen,
|
|
153
154
|
disabled: disabled,
|
|
154
155
|
tooltipContent: tooltip,
|
|
156
|
+
ariaHasPopup: fg('platform_editor_controls_patch_8') ? true : undefined,
|
|
155
157
|
onMount: onMount,
|
|
156
158
|
pulse: pulse,
|
|
157
159
|
spotlightConfig: spotlightConfig
|
package/dist/esm/ui/Dropdown.js
CHANGED
|
@@ -22,6 +22,7 @@ import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
|
|
|
22
22
|
import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
|
|
23
23
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
24
24
|
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
25
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
25
26
|
import { Divider } from './Divider';
|
|
26
27
|
import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
|
|
27
28
|
|
|
@@ -166,6 +167,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
166
167
|
selected: isOpen,
|
|
167
168
|
disabled: disabled,
|
|
168
169
|
tooltipContent: tooltip,
|
|
170
|
+
ariaHasPopup: fg('platform_editor_controls_patch_8') ? true : undefined,
|
|
169
171
|
onMount: onMount,
|
|
170
172
|
pulse: pulse,
|
|
171
173
|
spotlightConfig: spotlightConfig
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -145,6 +145,9 @@
|
|
|
145
145
|
},
|
|
146
146
|
"platform_editor_controls_patch_analytics_2": {
|
|
147
147
|
"type": "boolean"
|
|
148
|
+
},
|
|
149
|
+
"platform_editor_controls_patch_8": {
|
|
150
|
+
"type": "boolean"
|
|
148
151
|
}
|
|
149
152
|
}
|
|
150
153
|
}
|