@zohodesk/dot 1.0.0-temp-167 → 1.0.0-temp-169

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.
Files changed (108) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/PropUnificationExcludeFilesArray.js +345 -0
  3. package/.cli/PropValidationExcludeFilesArray.js +8 -1
  4. package/.cli/propValidation_report.html +24 -2
  5. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  6. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  7. package/coverage/ExternalLink/index.html +1 -1
  8. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  9. package/coverage/ExternalLink/props/index.html +1 -1
  10. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  11. package/coverage/IconButton/IconButton.js.html +1 -1
  12. package/coverage/IconButton/IconButton.module.css.html +1 -1
  13. package/coverage/IconButton/index.html +1 -1
  14. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  15. package/coverage/IconButton/props/index.html +1 -1
  16. package/coverage/IconButton/props/propTypes.js.html +1 -1
  17. package/coverage/Image/Image.js.html +1 -1
  18. package/coverage/Image/Image.module.css.html +1 -1
  19. package/coverage/Image/index.html +1 -1
  20. package/coverage/Image/props/defaultProps.js.html +1 -1
  21. package/coverage/Image/props/index.html +1 -1
  22. package/coverage/Image/props/propTypes.js.html +1 -1
  23. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  24. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  25. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  27. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  28. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  29. package/coverage/coverage-final.json +16 -16
  30. package/coverage/coverage-summary.json +16 -16
  31. package/coverage/index.html +1 -1
  32. package/es/ActionButton/ActionButton.js +10 -1
  33. package/es/ActionButton/props/propTypes.js +2 -1
  34. package/es/Attachment/Attachment.module.css +2 -2
  35. package/es/AttachmentViewer/AttachmentViewer.module.css +1 -1
  36. package/es/Drawer/Drawer.js +2 -5
  37. package/es/ImportantNotes/ImportantNotes.module.css +2 -6
  38. package/es/Link/Link.js +1 -2
  39. package/es/ToastMessage/ToastMessage.module.css +2 -2
  40. package/es/Upload/Upload.module.css +1 -1
  41. package/es/alert/AlertLookup/AlertLookup.module.css +1 -1
  42. package/es/avatar/AvatarStatus/AvatarStatus.js +0 -1
  43. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +2 -5
  44. package/es/errorstate/EmptyStates.module.css +3 -3
  45. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
  46. package/es/form/fields/Fields.module.css +1 -1
  47. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
  48. package/es/list/ListLayout/ListLayout.js +1 -1
  49. package/es/list/status/StatusDropdown/StatusDropdown.js +6 -6
  50. package/es/list/status/StatusListItem/StatusListItem.module.css +1 -1
  51. package/es/lookup/Lookup/Lookup.js +1 -1
  52. package/es/lookup/header/Close/LookupClose.module.css +1 -1
  53. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +1 -1
  54. package/es/setup/helptips/Description/HelpTipsDescription.module.css +1 -1
  55. package/es/v1/ActionButton/ActionButton.js +7 -2
  56. package/es/v1/Drawer/Drawer.js +2 -5
  57. package/es/v1/Link/Link.js +1 -2
  58. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +0 -1
  59. package/es/v1/list/ListLayout/ListLayout.js +1 -1
  60. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +6 -6
  61. package/es/v1/lookup/Lookup/Lookup.js +1 -1
  62. package/es/version2/GlobalNotification/GlobalNotification.module.css +1 -1
  63. package/es/version2/errorstate/V2_ErrorStates.module.css +1 -1
  64. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
  65. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
  66. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
  67. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +1 -1
  68. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +2 -2
  69. package/lib/ActionButton/ActionButton.js +41 -32
  70. package/lib/ActionButton/props/propTypes.js +2 -1
  71. package/lib/Attachment/Attachment.module.css +2 -2
  72. package/lib/AttachmentViewer/AttachmentViewer.module.css +1 -1
  73. package/lib/Drawer/Drawer.js +2 -5
  74. package/lib/ImportantNotes/ImportantNotes.module.css +2 -6
  75. package/lib/Link/Link.js +1 -2
  76. package/lib/ToastMessage/ToastMessage.module.css +2 -2
  77. package/lib/Upload/Upload.module.css +1 -1
  78. package/lib/alert/AlertLookup/AlertLookup.module.css +1 -1
  79. package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -1
  80. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +2 -5
  81. package/lib/errorstate/EmptyStates.module.css +3 -3
  82. package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
  83. package/lib/form/fields/Fields.module.css +1 -1
  84. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
  85. package/lib/list/ListLayout/ListLayout.js +1 -1
  86. package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -6
  87. package/lib/list/status/StatusListItem/StatusListItem.module.css +1 -1
  88. package/lib/lookup/Lookup/Lookup.js +1 -1
  89. package/lib/lookup/header/Close/LookupClose.module.css +1 -1
  90. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +1 -1
  91. package/lib/setup/helptips/Description/HelpTipsDescription.module.css +1 -1
  92. package/lib/v1/ActionButton/ActionButton.js +7 -2
  93. package/lib/v1/Drawer/Drawer.js +2 -5
  94. package/lib/v1/Link/Link.js +1 -2
  95. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +0 -1
  96. package/lib/v1/list/ListLayout/ListLayout.js +1 -1
  97. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +6 -6
  98. package/lib/v1/lookup/Lookup/Lookup.js +1 -1
  99. package/lib/version2/GlobalNotification/GlobalNotification.module.css +1 -1
  100. package/lib/version2/errorstate/V2_ErrorStates.module.css +1 -1
  101. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
  102. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
  103. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
  104. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +1 -1
  105. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +2 -2
  106. package/package.json +8 -8
  107. package/propValidationArg.json +8 -0
  108. package/result.json +1 -1
@@ -73,10 +73,7 @@ export class Header extends React.Component {
73
73
  shrink: true
74
74
  }, /*#__PURE__*/React.createElement(Heading, {
75
75
  title: title,
76
- className: style.title,
77
- a11y: {
78
- tabindex: '0'
79
- }
76
+ className: style.title
80
77
  })) : null, getTitleChildren ? /*#__PURE__*/React.createElement(Box, null, getTitleChildren()) : null)) : null, children ? /*#__PURE__*/React.createElement(Box, null, children) : null)), onClose ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(IconButton, {
81
78
  onClick: onClose,
82
79
  dataId: "closeButton",
@@ -161,7 +158,7 @@ export default class Drawer extends React.Component {
161
158
  needRestoreFocus = true,
162
159
  needListNavigation = false,
163
160
  needFocusLoop = true,
164
- needEnterAction = false
161
+ needEnterAction = true
165
162
  } = focusScopeProps;
166
163
  let childrenWithProps = React.Children.map(children, child => {
167
164
  if (child.type === Header || child.type === Footer || child.type === Content) {
@@ -2,23 +2,19 @@
2
2
  background: var(--zdt_importantnotes_bg);
3
3
  padding: var(--zd_size5) var(--zd_size10) ;
4
4
  }
5
-
6
5
  .title {
7
6
  font-size: var(--zd_font_size13) ;
8
- line-height: 1.3846;
7
+ line-height: var(--zd_font_size18);
9
8
  color: var(--zdt_importantnotes_title_text);
10
9
  }
11
-
12
10
  .icon {
13
11
  color: var(--zdt_importantnotes_icon);
14
12
  font-size: 0 ;
15
13
  margin-top: var(--zd_size1) ;
16
14
  }
17
-
18
15
  [dir=ltr] .icon {
19
16
  margin-right: var(--zd_size5) ;
20
17
  }
21
-
22
18
  [dir=rtl] .icon {
23
19
  margin-left: var(--zd_size5) ;
24
- }
20
+ }
package/es/Link/Link.js CHANGED
@@ -92,8 +92,7 @@ export default class Link extends React.Component {
92
92
  }, others, {
93
93
  onClick: this.onCallBack.bind(this, urlOutput, href)
94
94
  }, customProps, {
95
- "aria-label": ariaLabel,
96
- tabIndex: "0"
95
+ "aria-label": ariaLabel
97
96
  }), children);
98
97
  }
99
98
 
@@ -177,14 +177,14 @@
177
177
  .alertMessage {
178
178
  font-size: var(--zd_font_size12) ;
179
179
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
180
- line-height: 1.3333;
180
+ line-height: var(--zd_size16);
181
181
  color: var(--zdt_toastmessage_alert_text);
182
182
  margin-top: var(--zd_size5) ;
183
183
  }
184
184
 
185
185
  .buttonText {
186
186
  font-size: inherit ;
187
- line-height: normal;
187
+ line-height: var(--zd_size14);
188
188
  text-align: center;
189
189
  padding: 0 var(--zd_size7) ;
190
190
  cursor: pointer;
@@ -88,7 +88,7 @@
88
88
  width: var(--zd_size12) ;
89
89
  top: 0 ;
90
90
  position: absolute;
91
- line-height: 0.8333;
91
+ line-height: var(--zd_size10);
92
92
  font-size: var(--zd_font_size12) ;
93
93
  text-align: center;
94
94
  }
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .innerSection {
6
- line-height: 1.6667;
6
+ line-height: var(--zd_size25);
7
7
  color: var(--zdt_alertlookup_innersection_text);
8
8
  font-size: var(--zd_font_size15) ;
9
9
  word-break: break-word;
@@ -39,7 +39,6 @@ export default class AvatarStatus extends React.Component {
39
39
  return /*#__PURE__*/React.createElement("div", _extends({
40
40
  className: `${style.container} ${className} `
41
41
  }, AvatarStatusProps, {
42
- tabIndex: "0",
43
42
  "aria-label": `${title}, ${name}, ${statusTitle}`,
44
43
  "data-selector-id": dataSelectorId
45
44
  }), /*#__PURE__*/React.createElement(Avatar, _extends({
@@ -58,11 +58,8 @@
58
58
  [dir=rtl] .linkDesc, [dir=rtl] .desc {
59
59
  margin-left: var(--zd_size4) ;
60
60
  }
61
- .small .desc {
62
- line-height: 1.584;
63
- }
64
- .medium .desc {
65
- line-height: 1.358;
61
+ .desc {
62
+ line-height: var(--zd_size19);
66
63
  }
67
64
  .link {
68
65
  /* css:theme-validation:ignore */
@@ -33,15 +33,15 @@
33
33
  }
34
34
  .title {
35
35
  font-size: var(--zd_font_size50) ;
36
- line-height: 1.4;
36
+ line-height: var(--zd_size70);
37
37
  }
38
38
  .tabletTitle {
39
39
  font-size: var(--zd_font_size24) ;
40
- line-height: 2.0833;
40
+ line-height: var(--zd_size50);
41
41
  }
42
42
  .mobileTitle {
43
43
  font-size: var(--zd_font_size22) ;
44
- line-height: 1.3636;
44
+ line-height: var(--zd_size30);
45
45
  }
46
46
  .subtitle {
47
47
  font-size: var(--zd_font_size30) ;
@@ -13,7 +13,7 @@
13
13
  font-size: var(--zd_font_size30) ;
14
14
  }
15
15
  .lastBox {
16
- line-height: 1.7143;
16
+ line-height: var(--zd_size24);
17
17
  font-size: var(--zd_font_size14) ;
18
18
  margin: 0 auto ;
19
19
  margin-bottom: var(--zd_size20) ;
@@ -169,7 +169,7 @@
169
169
  color: var(--zdt_fields_phitag_text);
170
170
  font-size: var(--zd_font_size12) ;
171
171
  height: var(--zd_size18) ;
172
- line-height: 1.5;
172
+ line-height: var(--zd_size18);
173
173
  background-color: var(--zdt_fields_phitag_bg);
174
174
  border: 1px solid var(--zdt_fields_phitag_border);
175
175
  padding: 0 var(--zd_size5) ;
@@ -12,7 +12,7 @@
12
12
  font-size: var(--zd_font_size12) ;
13
13
  display: inline-block;
14
14
  color: var(--zdt_setupdetail_backicon);
15
- line-height: 2.5;
15
+ line-height: var(--zd_size30);
16
16
  text-align: center;
17
17
  border-radius: 50%;
18
18
  cursor: pointer;
@@ -29,7 +29,7 @@
29
29
  }
30
30
  .title {
31
31
  font-size: var(--zd_font_size16) ;
32
- line-height: 1;
32
+ line-height: var(--zd_size16);
33
33
  font-family: var(--zd_semibold);
34
34
  color: var(--zdt_setupdetail_backicon);
35
35
  composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
@@ -57,7 +57,7 @@
57
57
  padding: var(--zd_size12) 0 0 var(--zd_size15) ;
58
58
  }
59
59
  .helpInfo {
60
- line-height: 2.3636;
60
+ line-height: var(--zd_size26);
61
61
  height: var(--zd_size28) ;
62
62
  width: var(--zd_size28) ;
63
63
  color: var(--zdt_setupdetail_helpinfo_text);
@@ -120,7 +120,7 @@
120
120
  height: var(--zd_size26) ;
121
121
  width: var(--zd_size26) ;
122
122
  font-size: var(--zd_font_size12) ;
123
- line-height: 2;
123
+ line-height: var(--zd_size24);
124
124
  text-align: center;
125
125
  border: 1px solid var(--zdt_setupdetail_infoicon_border);
126
126
  border-radius: 2px;
@@ -43,7 +43,7 @@ export default class ListLayout extends Component {
43
43
  "data-id": dataId,
44
44
  "data-test-id": dataId,
45
45
  "data-title": dataTitle,
46
- tabIndex: "0",
46
+ tabIndex: onClick ? '0' : null,
47
47
  role: role,
48
48
  "data-a11y-inset-focus": true,
49
49
  "aria-label": ariaLabel,
@@ -335,8 +335,8 @@ export class StatusDropdown extends React.Component {
335
335
  dataId: dataId,
336
336
  onClick: removeClose,
337
337
  disabled: isDisabled || isReadOnly ? true : false,
338
- "aria-haspopup": true,
339
- "aria-expanded": isPopupOpen && isEditable ? true : false,
338
+ "aria-haspopup": isSearch ? 'listbox' : 'menu',
339
+ "aria-expanded": isPopupReady && isEditable ? true : false,
340
340
  tabIndex: tabIndex,
341
341
  "aria-labelledby": ariaLabelledby,
342
342
  "aria-label": ariaLabel,
@@ -395,10 +395,10 @@ export class StatusDropdown extends React.Component {
395
395
  inputRef: this.searchInputRef,
396
396
  onKeyDown: this.handleKeyDown,
397
397
  a11y: {
398
- ariaHaspopup: true,
399
- ariaExpanded: true,
398
+ ariaHaspopup: isSearch ? 'listbox' : 'menu',
399
+ ariaExpanded: isPopupReady,
400
400
  role: 'combobox',
401
- ariaActivedescendant: value,
401
+ ariaActivedescendant: isPopupReady ? value : '',
402
402
  ariaOwns: ariaTitleId
403
403
  }
404
404
  })) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
@@ -420,7 +420,7 @@ export class StatusDropdown extends React.Component {
420
420
  onScroll: this.handleScroll,
421
421
  role: isSearch ? 'listbox' : 'menu',
422
422
  "aria-labelledby": ariaTitleId,
423
- tabindex: "0"
423
+ tabindex: "-1"
424
424
  }, options.length != 0 && isDataLoaded ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map((item, i) => /*#__PURE__*/React.createElement(React.Fragment, {
425
425
  key: i
426
426
  }, /*#__PURE__*/React.createElement(StatusListItem, {
@@ -31,7 +31,7 @@
31
31
  padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3) ;
32
32
  }
33
33
  .value,.multiLineValue {
34
- line-height: 1.5385;
34
+ line-height: var(--zd_size20);
35
35
  }
36
36
  .value {
37
37
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
@@ -71,7 +71,7 @@ export default class Lookup extends Component {
71
71
  needRestoreFocus = true,
72
72
  needListNavigation = false,
73
73
  needFocusLoop = true,
74
- needEnterAction = false
74
+ needEnterAction = true
75
75
  } = focusScopeProps;
76
76
  const content = /*#__PURE__*/React.createElement("div", {
77
77
  ref: this.createRef,
@@ -1,7 +1,7 @@
1
1
  .container {
2
2
  width: var(--zd_size25) ;
3
3
  height: var(--zd_size25) ;
4
- line-height: 2.7778;
4
+ line-height: var(--zd_size25);
5
5
  color: var(--zdt_lookupclose_default_text);
6
6
  transition: var(--zd_transition2) cubic-bezier(0.4, 1, 0.65, 1);
7
7
  font-size: var(--zd_font_size9) ;
@@ -26,7 +26,7 @@
26
26
  /* Label Style */
27
27
  .labelCnt {
28
28
  composes: dInflex alignVertical from '~@zohodesk/components/lib/common/common.module.css';
29
- line-height: 1.6667;
29
+ line-height: var(--zd_size20);
30
30
  color: var(--zdt_viewdropdown_label_text);
31
31
  cursor: pointer;
32
32
  }
@@ -1,6 +1,6 @@
1
1
  .text {
2
2
  font-size: var(--zd_font_size14) ;
3
3
  color: var(--zdt_helptips_text);
4
- line-height: 1.7143;
4
+ line-height: var(--zd_size24);
5
5
  margin: var(--zd_size10) 0 ;
6
6
  }
@@ -40,13 +40,18 @@ function ActionButton(props) {
40
40
  innerClassName,
41
41
  popupGroup,
42
42
  togglePopup,
43
- defaultPosition
43
+ defaultPosition,
44
+ openPopupOnly
44
45
  } = props;
45
46
 
46
47
  const handleTogglePopup = e => {
47
48
  togglePopup(e, defaultPosition);
48
49
  };
49
50
 
51
+ const handlePopupOpen = e => {
52
+ openPopupOnly(e, defaultPosition);
53
+ };
54
+
50
55
  return /*#__PURE__*/React.createElement(Container, {
51
56
  alignBox: "row",
52
57
  isCover: false,
@@ -94,7 +99,7 @@ function ActionButton(props) {
94
99
  "data-title": removeChildrenTooltip ? null : subText,
95
100
  className: style.subTxt
96
101
  }, subText) : null)), children ? /*#__PURE__*/React.createElement(Box, {
97
- onClick: onClick ? !onHover && handleTogglePopup : undefined,
102
+ onClick: onClick && !onHover ? handleTogglePopup : handlePopupOpen,
98
103
  onMouseEnter: onClick ? onHover && handleTogglePopup : undefined,
99
104
  onMouseLeave: onClick ? onHover && handleTogglePopup : undefined,
100
105
  className: `${btnStyle.buttonReset} ${style[arrowBoxSize + '_arrowBox']} ${style[palette + 'Arw']} ${style.arrowWrapper} ${isPopupOpen ? style.arrowActive : ''}`,
@@ -72,10 +72,7 @@ export function Header(props) {
72
72
  shrink: true
73
73
  }, /*#__PURE__*/React.createElement(Heading, {
74
74
  title: title,
75
- className: style.title,
76
- a11y: {
77
- tabindex: '0'
78
- }
75
+ className: style.title
79
76
  })) : null, getTitleChildren ? /*#__PURE__*/React.createElement(Box, null, getTitleChildren()) : null)) : null, children ? /*#__PURE__*/React.createElement(Box, null, children) : null)), onClose ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(IconButton, {
80
77
  onClick: onClose,
81
78
  dataId: "closeButton",
@@ -147,7 +144,7 @@ export default function Drawer(props) {
147
144
  needRestoreFocus = true,
148
145
  needListNavigation = false,
149
146
  needFocusLoop = true,
150
- needEnterAction = false
147
+ needEnterAction = true
151
148
  } = focusScopeProps;
152
149
  let childrenWithProps = React.Children.map(children, child => {
153
150
  if (child.type === Header || child.type === Footer || child.type === Content) {
@@ -84,8 +84,7 @@ export default function Link(props) {
84
84
  }, others, {
85
85
  onClick: callBack
86
86
  }, customProps, {
87
- "aria-label": ariaLabel,
88
- tabIndex: "0"
87
+ "aria-label": ariaLabel
89
88
  }), children);
90
89
  }
91
90
  Link.defaultProps = defaultProps;
@@ -34,7 +34,6 @@ export default function AvatarStatus(props) {
34
34
  return /*#__PURE__*/React.createElement("div", _extends({
35
35
  className: `${style.container} ${className} `
36
36
  }, AvatarStatusProps, {
37
- tabIndex: "0",
38
37
  "aria-label": `${title}, ${name}, ${statusTitle}`,
39
38
  "data-selector-id": dataSelectorId
40
39
  }), /*#__PURE__*/React.createElement(Avatar, _extends({
@@ -38,7 +38,7 @@ export default function ListLayout(props) {
38
38
  "data-id": dataId,
39
39
  "data-test-id": dataId,
40
40
  "data-title": dataTitle,
41
- tabIndex: "0",
41
+ tabIndex: onClick ? '0' : null,
42
42
  role: role,
43
43
  "data-a11y-inset-focus": true,
44
44
  "aria-label": ariaLabel,
@@ -247,8 +247,8 @@ function StatusDropdown(props) {
247
247
  dataId: dataId,
248
248
  onClick: removeClose,
249
249
  disabled: isDisabled || isReadOnly ? true : false,
250
- "aria-haspopup": true,
251
- "aria-expanded": isPopupOpen && isEditable ? true : false,
250
+ "aria-haspopup": isSearch ? 'listbox' : 'menu',
251
+ "aria-expanded": isPopupReady && isEditable ? true : false,
252
252
  tabIndex: tabIndex,
253
253
  "aria-labelledby": ariaLabelledby,
254
254
  "aria-label": ariaLabel,
@@ -307,10 +307,10 @@ function StatusDropdown(props) {
307
307
  inputRef: searchInputRef,
308
308
  onKeyDown: handleKeyDown,
309
309
  a11y: {
310
- ariaHaspopup: true,
311
- ariaExpanded: true,
310
+ ariaHaspopup: isSearch ? 'listbox' : 'menu',
311
+ ariaExpanded: isPopupReady,
312
312
  role: 'combobox',
313
- ariaActivedescendant: value,
313
+ ariaActivedescendant: isPopupReady ? value : '',
314
314
  ariaOwns: ariaTitleId
315
315
  }
316
316
  })) : null, title && optionsList.length != 0 && /*#__PURE__*/React.createElement(Box, {
@@ -332,7 +332,7 @@ function StatusDropdown(props) {
332
332
  onScroll: handleScroll,
333
333
  role: isSearch ? 'listbox' : 'menu',
334
334
  "aria-labelledby": ariaTitleId,
335
- tabindex: "0"
335
+ tabindex: "-1"
336
336
  }, optionsList.length != 0 && isDataLoaded ? /*#__PURE__*/React.createElement(React.Fragment, null, optionsList.map((item, i) => /*#__PURE__*/React.createElement(React.Fragment, {
337
337
  key: i
338
338
  }, /*#__PURE__*/React.createElement(StatusListItem, {
@@ -45,7 +45,7 @@ export default function Lookup(props) {
45
45
  needRestoreFocus = true,
46
46
  needListNavigation = false,
47
47
  needFocusLoop = true,
48
- needEnterAction = false
48
+ needEnterAction = true
49
49
  } = focusScopeProps;
50
50
  const createRef = useRef(null);
51
51
  const handleKeyDown = useCallback(e => {
@@ -102,7 +102,7 @@
102
102
  font-size: var(--zd_font_size14) ;
103
103
  font-family: var(--zd_semibold);
104
104
  composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
105
- line-height: 1.4286;
105
+ line-height: var(--zd_size20);
106
106
  }
107
107
 
108
108
  [dir=ltr] .text {
@@ -8,7 +8,7 @@
8
8
  font-family: var(--zd_bold);
9
9
  }
10
10
  .desc {
11
- line-height: 1.5714;
11
+ line-height: var(--zd_size22);
12
12
  }
13
13
  .large .errorState {
14
14
  width: var(--zd_size450) ;
@@ -56,7 +56,7 @@
56
56
  .title {
57
57
  color: var(--zdt_alertlookupnew_text);
58
58
  font-size: var(--zd_font_size18) ;
59
- line-height: 1.2222;
59
+ line-height: var(--zd_size22);
60
60
  font-family: var(--zd_bold);
61
61
  composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
62
62
  vertical-align: middle;
@@ -5,7 +5,7 @@
5
5
  .innerSection {
6
6
  color: var(--zdt_alertlookupnew_text);
7
7
  font-size: var(--zd_font_size14) ;
8
- line-height: 1.428;
8
+ line-height: var(--zd_size20);
9
9
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
10
10
  padding: var(--zd_size17) var(--zd_size30) var(--zd_size30) ;
11
11
  }
@@ -108,7 +108,7 @@
108
108
 
109
109
  .subTitle {
110
110
  font-size: var(--zd_font_size15) ;
111
- line-height: 1.3333;
111
+ line-height: var(--zd_size20);
112
112
  font-family: var(--zd_semibold);
113
113
  composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
114
114
  }
@@ -119,7 +119,7 @@
119
119
 
120
120
  .infoText {
121
121
  font-size: var(--zd_font_size14) ;
122
- line-height: 1.2857;
122
+ line-height: var(--zd_size18);
123
123
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
124
124
  }
125
125
 
@@ -65,7 +65,7 @@ export default class DesktopNotificationHeader extends Component {
65
65
  $ui_className: style.title,
66
66
  $ui_tagName: "h1",
67
67
  $ui_size: uptoTablet ? '16' : '18',
68
- $ui_lineHeight: "1.2",
68
+ $ui_lineHeight: "20",
69
69
  $ui_weight: "bold",
70
70
  $flag_reset: true,
71
71
  $ui_wordBreak: "breakWord"
@@ -67,7 +67,7 @@
67
67
  }
68
68
 
69
69
  .primary .infoText {
70
- line-height: 1;
70
+ line-height: var(--zd_size18);
71
71
  }
72
72
 
73
73
  .primary .close {
@@ -96,7 +96,7 @@
96
96
  }
97
97
 
98
98
  .secondary .infoText {
99
- line-height: 1.4286;
99
+ line-height: var(--zd_size20);
100
100
  }
101
101
 
102
102
  .secondary .iconContainer {
@@ -63,48 +63,57 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
63
63
 
64
64
  _this = _super.call(this, props);
65
65
  _this.handleTogglePopup = _this.handleTogglePopup.bind(_assertThisInitialized(_this));
66
+ _this.handlePopupOpen = _this.handlePopupOpen.bind(_assertThisInitialized(_this));
66
67
  return _this;
67
68
  }
68
69
 
69
70
  _createClass(ActionButton, [{
70
- key: "handleTogglePopup",
71
- value: function handleTogglePopup(e) {
71
+ key: "handlePopupOpen",
72
+ value: function handlePopupOpen(e) {
72
73
  var _this$props = this.props,
73
- togglePopup = _this$props.togglePopup,
74
+ openPopupOnly = _this$props.openPopupOnly,
74
75
  defaultPosition = _this$props.defaultPosition;
76
+ openPopupOnly(e, defaultPosition);
77
+ }
78
+ }, {
79
+ key: "handleTogglePopup",
80
+ value: function handleTogglePopup(e) {
81
+ var _this$props2 = this.props,
82
+ togglePopup = _this$props2.togglePopup,
83
+ defaultPosition = _this$props2.defaultPosition;
75
84
  togglePopup(e, defaultPosition);
76
85
  }
77
86
  }, {
78
87
  key: "render",
79
88
  value: function render() {
80
- var _this$props2 = this.props,
81
- isLoading = _this$props2.isLoading,
82
- onClick = _this$props2.onClick,
83
- size = _this$props2.size,
84
- dataId = _this$props2.dataId,
85
- dataSelectorId = _this$props2.dataSelectorId,
86
- isArrow = _this$props2.isArrow,
87
- text = _this$props2.text,
88
- subText = _this$props2.subText,
89
- arrowBoxSize = _this$props2.arrowBoxSize,
90
- palette = _this$props2.palette,
91
- onHover = _this$props2.onHover,
92
- position = _this$props2.position,
93
- className = _this$props2.className,
94
- iconName = _this$props2.iconName,
95
- iconSize = _this$props2.iconSize,
96
- dataTitle = _this$props2.dataTitle,
97
- isDisabled = _this$props2.isDisabled,
98
- isPopupOpen = _this$props2.isPopupOpen,
99
- removeClose = _this$props2.removeClose,
100
- children = _this$props2.children,
101
- dropBoxClass = _this$props2.dropBoxClass,
102
- isBoxPaddingNeed = _this$props2.isBoxPaddingNeed,
103
- getContainerRef = _this$props2.getContainerRef,
104
- getTargetRef = _this$props2.getTargetRef,
105
- removeChildrenTooltip = _this$props2.removeChildrenTooltip,
106
- innerClassName = _this$props2.innerClassName,
107
- popupGroup = _this$props2.popupGroup;
89
+ var _this$props3 = this.props,
90
+ isLoading = _this$props3.isLoading,
91
+ onClick = _this$props3.onClick,
92
+ size = _this$props3.size,
93
+ dataId = _this$props3.dataId,
94
+ dataSelectorId = _this$props3.dataSelectorId,
95
+ isArrow = _this$props3.isArrow,
96
+ text = _this$props3.text,
97
+ subText = _this$props3.subText,
98
+ arrowBoxSize = _this$props3.arrowBoxSize,
99
+ palette = _this$props3.palette,
100
+ onHover = _this$props3.onHover,
101
+ position = _this$props3.position,
102
+ className = _this$props3.className,
103
+ iconName = _this$props3.iconName,
104
+ iconSize = _this$props3.iconSize,
105
+ dataTitle = _this$props3.dataTitle,
106
+ isDisabled = _this$props3.isDisabled,
107
+ isPopupOpen = _this$props3.isPopupOpen,
108
+ removeClose = _this$props3.removeClose,
109
+ children = _this$props3.children,
110
+ dropBoxClass = _this$props3.dropBoxClass,
111
+ isBoxPaddingNeed = _this$props3.isBoxPaddingNeed,
112
+ getContainerRef = _this$props3.getContainerRef,
113
+ getTargetRef = _this$props3.getTargetRef,
114
+ removeChildrenTooltip = _this$props3.removeChildrenTooltip,
115
+ innerClassName = _this$props3.innerClassName,
116
+ popupGroup = _this$props3.popupGroup;
108
117
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
109
118
  alignBox: "row",
110
119
  isCover: false,
@@ -152,7 +161,7 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
152
161
  "data-title": removeChildrenTooltip ? null : subText,
153
162
  className: _ActionButtonModule["default"].subTxt
154
163
  }, subText) : null)), children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
155
- onClick: onClick ? !onHover && this.handleTogglePopup : undefined,
164
+ onClick: onClick && !onHover ? this.handleTogglePopup : this.handlePopupOpen,
156
165
  onMouseEnter: onClick ? onHover && this.handleTogglePopup : undefined,
157
166
  onMouseLeave: onClick ? onHover && this.handleTogglePopup : undefined,
158
167
  className: "".concat(_semanticButtonModule["default"].buttonReset, " ").concat(_ActionButtonModule["default"][arrowBoxSize + '_arrowBox'], " ").concat(_ActionButtonModule["default"][palette + 'Arw'], " ").concat(_ActionButtonModule["default"].arrowWrapper, " ").concat(isPopupOpen ? _ActionButtonModule["default"].arrowActive : ''),
@@ -38,6 +38,7 @@ var propTypes = {
38
38
  removeChildrenTooltip: _propTypes["default"].bool,
39
39
  innerClassName: _propTypes["default"].string,
40
40
  popupGroup: _propTypes["default"].string,
41
- togglePopup: _propTypes["default"].func
41
+ togglePopup: _propTypes["default"].func,
42
+ openPopupOnly: _propTypes["default"].func
42
43
  };
43
44
  exports.propTypes = propTypes;
@@ -82,12 +82,12 @@
82
82
 
83
83
  .medium .atatchName {
84
84
  font-size: var(--zd_font_size14) ;
85
- line-height: 1.4286;
85
+ line-height: var(--zd_size20);
86
86
  }
87
87
 
88
88
  .small .atatchName {
89
89
  font-size: var(--zd_font_size12) ;
90
- line-height: 1.25;
90
+ line-height: var(--zd_size15);
91
91
  }
92
92
 
93
93
  .attachSize {
@@ -79,7 +79,7 @@
79
79
  font-size: var(--zd_font_size22) ;
80
80
  height: var(--zd_size38) ;
81
81
  width: var(--zd_size38) ;
82
- line-height: 1.6364;
82
+ line-height: var(--zd_size36);
83
83
  border-radius: 50%;
84
84
  cursor: pointer;
85
85
  }