@atlaskit/side-nav-items 1.2.0 → 1.3.0

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,16 @@
1
1
  # @atlaskit/side-nav-items
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c50f9ea3221b7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c50f9ea3221b7) -
8
+ The `description` of menu items will now use the selected state token when the menu item is
9
+ selected.
10
+
11
+ This change was previously behind the feature gate `platform-dst-menu-item-description-selected`,
12
+ which has now been cleaned up.
13
+
3
14
  ## 1.2.0
4
15
 
5
16
  ### Minor Changes
@@ -281,10 +281,10 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref2, forwardedRef) {
281
281
  }),
282
282
  ref: labelRef
283
283
  }, children), description && /*#__PURE__*/_react.default.createElement(_compiled.Text, {
284
- color: (0, _platformFeatureFlags.fg)('platform-dst-menu-item-description-selected') ? getTextColor({
284
+ color: getTextColor({
285
285
  isDisabled: isDisabled,
286
286
  isSelected: isSelected
287
- }) : isDisabled ? 'color.text.disabled' : 'color.text.subtle',
287
+ }),
288
288
  size: "small",
289
289
  maxLines: 1,
290
290
  ref: descriptionRef
@@ -271,10 +271,10 @@ const MenuItemBaseNoRef = ({
271
271
  }),
272
272
  ref: labelRef
273
273
  }, children), description && /*#__PURE__*/React.createElement(Text, {
274
- color: fg('platform-dst-menu-item-description-selected') ? getTextColor({
274
+ color: getTextColor({
275
275
  isDisabled,
276
276
  isSelected
277
- }) : isDisabled ? 'color.text.disabled' : 'color.text.subtle',
277
+ }),
278
278
  size: "small",
279
279
  maxLines: 1,
280
280
  ref: descriptionRef
@@ -272,10 +272,10 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref2, forwardedRef) {
272
272
  }),
273
273
  ref: labelRef
274
274
  }, children), description && /*#__PURE__*/React.createElement(Text, {
275
- color: fg('platform-dst-menu-item-description-selected') ? getTextColor({
275
+ color: getTextColor({
276
276
  isDisabled: isDisabled,
277
277
  isSelected: isSelected
278
- }) : isDisabled ? 'color.text.disabled' : 'color.text.subtle',
278
+ }),
279
279
  size: "small",
280
280
  maxLines: 1,
281
281
  ref: descriptionRef
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/side-nav-items",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Menu items and elements for the navigation side nav area.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -58,7 +58,7 @@
58
58
  "@af/visual-regression": "workspace:^",
59
59
  "@atlaskit/app-provider": "^3.3.0",
60
60
  "@atlaskit/lozenge": "^13.3.0",
61
- "@atlaskit/navigation-system": "^5.30.0",
61
+ "@atlaskit/navigation-system": "^5.31.0",
62
62
  "@atlaskit/ssr": "workspace:^",
63
63
  "@atlassian/a11y-jest-testing": "^0.8.0",
64
64
  "@atlassian/feature-flags-test-utils": "^1.0.0",
@@ -112,9 +112,6 @@
112
112
  "platform_dst_nav4_flyout_menu_slots_close_button": {
113
113
  "type": "boolean"
114
114
  },
115
- "platform-dst-menu-item-description-selected": {
116
- "type": "boolean"
117
- },
118
115
  "platform_dst_nav4_flyoutmenuitem_render_to_parent": {
119
116
  "type": "boolean"
120
117
  }