@atlaskit/reactions 35.12.10 → 35.12.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,14 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 35.12.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c93de6bde10fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c93de6bde10fd) -
|
|
8
|
+
Cleanup feature gate `platform_ceps-5921-a11y-fix-reactions`. The reaction picker panel now always
|
|
9
|
+
uses non-modal dialog semantics for assistive technology.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 35.12.10
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -382,11 +382,6 @@ var PopperWrapper = exports.PopperWrapper = function PopperWrapper(props) {
|
|
|
382
382
|
setPopupRef = _useState12[1];
|
|
383
383
|
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
384
384
|
formatMessage = _useIntl.formatMessage;
|
|
385
|
-
/**
|
|
386
|
-
* Expose the reaction picker panel as a non-modal dialog to assistive technology.
|
|
387
|
-
* When disabled, fall back to the previous `role="group"` semantics.
|
|
388
|
-
*/
|
|
389
|
-
var isDialogRoleEnabled = (0, _platformFeatureFlags.fg)('platform_ceps-5921-a11y-fix-reactions');
|
|
390
385
|
/**
|
|
391
386
|
* add focus lock to popup
|
|
392
387
|
*/
|
|
@@ -414,8 +409,7 @@ var PopperWrapper = exports.PopperWrapper = function PopperWrapper(props) {
|
|
|
414
409
|
style = _ref3.style,
|
|
415
410
|
update = _ref3.update;
|
|
416
411
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
417
|
-
role:
|
|
418
|
-
"aria-modal": isDialogRoleEnabled ? false : undefined,
|
|
412
|
+
role: "dialog",
|
|
419
413
|
"aria-label": formatMessage(_i18n.messages.popperWrapperLabel),
|
|
420
414
|
id: PICKER_CONTROL_ID,
|
|
421
415
|
"data-testid": RENDER_REACTIONPICKERPANEL_TESTID,
|
|
@@ -338,11 +338,6 @@ export const PopperWrapper = props => {
|
|
|
338
338
|
const {
|
|
339
339
|
formatMessage
|
|
340
340
|
} = useIntl();
|
|
341
|
-
/**
|
|
342
|
-
* Expose the reaction picker panel as a non-modal dialog to assistive technology.
|
|
343
|
-
* When disabled, fall back to the previous `role="group"` semantics.
|
|
344
|
-
*/
|
|
345
|
-
const isDialogRoleEnabled = fg('platform_ceps-5921-a11y-fix-reactions');
|
|
346
341
|
/**
|
|
347
342
|
* add focus lock to popup
|
|
348
343
|
*/
|
|
@@ -369,8 +364,7 @@ export const PopperWrapper = props => {
|
|
|
369
364
|
update
|
|
370
365
|
}) => {
|
|
371
366
|
return /*#__PURE__*/React.createElement("div", {
|
|
372
|
-
role:
|
|
373
|
-
"aria-modal": isDialogRoleEnabled ? false : undefined,
|
|
367
|
+
role: "dialog",
|
|
374
368
|
"aria-label": formatMessage(messages.popperWrapperLabel),
|
|
375
369
|
id: PICKER_CONTROL_ID,
|
|
376
370
|
"data-testid": RENDER_REACTIONPICKERPANEL_TESTID,
|
|
@@ -373,11 +373,6 @@ export var PopperWrapper = function PopperWrapper(props) {
|
|
|
373
373
|
setPopupRef = _useState12[1];
|
|
374
374
|
var _useIntl = useIntl(),
|
|
375
375
|
formatMessage = _useIntl.formatMessage;
|
|
376
|
-
/**
|
|
377
|
-
* Expose the reaction picker panel as a non-modal dialog to assistive technology.
|
|
378
|
-
* When disabled, fall back to the previous `role="group"` semantics.
|
|
379
|
-
*/
|
|
380
|
-
var isDialogRoleEnabled = fg('platform_ceps-5921-a11y-fix-reactions');
|
|
381
376
|
/**
|
|
382
377
|
* add focus lock to popup
|
|
383
378
|
*/
|
|
@@ -405,8 +400,7 @@ export var PopperWrapper = function PopperWrapper(props) {
|
|
|
405
400
|
style = _ref3.style,
|
|
406
401
|
update = _ref3.update;
|
|
407
402
|
return /*#__PURE__*/React.createElement("div", {
|
|
408
|
-
role:
|
|
409
|
-
"aria-modal": isDialogRoleEnabled ? false : undefined,
|
|
403
|
+
role: "dialog",
|
|
410
404
|
"aria-label": formatMessage(messages.popperWrapperLabel),
|
|
411
405
|
id: PICKER_CONTROL_ID,
|
|
412
406
|
"data-testid": RENDER_REACTIONPICKERPANEL_TESTID,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "35.12.
|
|
3
|
+
"version": "35.12.11",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/spinner": "^20.1.0",
|
|
56
56
|
"@atlaskit/tabs": "^21.0.0",
|
|
57
57
|
"@atlaskit/theme": "^28.0.0",
|
|
58
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
58
|
+
"@atlaskit/tmp-editor-statsig": "^148.0.0",
|
|
59
59
|
"@atlaskit/tokens": "^16.7.0",
|
|
60
60
|
"@atlaskit/tooltip": "^24.0.0",
|
|
61
61
|
"@atlaskit/ufo": "^1.0.0",
|
|
@@ -133,9 +133,6 @@
|
|
|
133
133
|
"platform_suppression_removal_fix_reactions": {
|
|
134
134
|
"type": "boolean"
|
|
135
135
|
},
|
|
136
|
-
"platform_ceps-5921-a11y-fix-reactions": {
|
|
137
|
-
"type": "boolean"
|
|
138
|
-
},
|
|
139
136
|
"a11y_reactions_reading_order": {
|
|
140
137
|
"type": "boolean"
|
|
141
138
|
},
|