@spaced-out/ui-design-system 0.1.123 → 0.1.124
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/.cspell/custom-words.txt +2 -0
- package/.github/workflows/publish_to_npm.yml +1 -1
- package/CHANGELOG.md +12 -0
- package/lib/components/SideMenuLink/SideMenuLink.js +6 -4
- package/lib/components/SideMenuLink/SideMenuLink.js.flow +6 -4
- package/lib/components/SideMenuLink/SideMenuLink.module.css +13 -0
- package/package.json +1 -1
package/.cspell/custom-words.txt
CHANGED
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
- name: Check Permissions
|
|
23
23
|
id: check-permissions
|
|
24
24
|
env:
|
|
25
|
-
ALLOWED_USERS: superrover, Anant-Raj, ashwini-sensehq, vish-sah, VishalBarnawal, sanskar-s, VivekJangid, sharad-kushwah, Swatantramishra1
|
|
25
|
+
ALLOWED_USERS: superrover, Anant-Raj, ashwini-sensehq, vish-sah, VishalBarnawal, sanskar-s, VivekJangid, sharad-kushwah, Swatantramishra1, bhatiarush27
|
|
26
26
|
if: ${{ !contains(env.ALLOWED_USERS, github.actor) }}
|
|
27
27
|
run: |
|
|
28
28
|
echo "You don't have correct permissions to do this release"
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.124](https://github.com/spaced-out/ui-design-system/compare/v0.1.123...v0.1.124) (2024-08-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* github pages release access ([#256](https://github.com/spaced-out/ui-design-system/issues/256)) ([f7e4e47](https://github.com/spaced-out/ui-design-system/commit/f7e4e474aed55ccff84835feed20caeb477b9d83))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* side menu link accesibility ([#259](https://github.com/spaced-out/ui-design-system/issues/259)) ([3c06c7b](https://github.com/spaced-out/ui-design-system/commit/3c06c7bcedfc6545cddad96e60dbcde5ec05c9dc))
|
|
16
|
+
|
|
5
17
|
### [0.1.123](https://github.com/spaced-out/ui-design-system/compare/v0.1.122...v0.1.123) (2024-08-26)
|
|
6
18
|
|
|
7
19
|
|
|
@@ -205,10 +205,12 @@ const SideMenuLink = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
205
205
|
condition: to !== undefined,
|
|
206
206
|
wrapper: children => /*#__PURE__*/React.createElement(_Link.Link, {
|
|
207
207
|
to: to,
|
|
208
|
-
tabIndex: -1,
|
|
208
|
+
tabIndex: disabled ? -1 : 0,
|
|
209
209
|
linkComponent: LinkComponent,
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
className: (0, _classify.default)(_SideMenuLinkModule.default.linkComponent, {
|
|
211
|
+
[_SideMenuLinkModule.default.closed]: !opened
|
|
212
|
+
}),
|
|
213
|
+
onClick: onChangeHandler
|
|
212
214
|
}, children)
|
|
213
215
|
}, /*#__PURE__*/React.createElement(_ConditionalWrapper.ConditionalWrapper, {
|
|
214
216
|
condition: Boolean(!opened && !inActive),
|
|
@@ -224,7 +226,7 @@ const SideMenuLink = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
224
226
|
}, classNames?.wrapper),
|
|
225
227
|
onClick: onChangeHandler,
|
|
226
228
|
ref: ref,
|
|
227
|
-
tabIndex: disabled ? -1 : tabIndex,
|
|
229
|
+
tabIndex: disabled || to !== undefined ? -1 : tabIndex,
|
|
228
230
|
disabled: disabled,
|
|
229
231
|
key: pageNameKey
|
|
230
232
|
}), pageNameKey && MENU_NAME_LIST[pageNameKey] ? /*#__PURE__*/React.createElement(_Icon.Icon, {
|
|
@@ -232,10 +232,12 @@ export const SideMenuLink: React$AbstractComponent<
|
|
|
232
232
|
wrapper={(children) => (
|
|
233
233
|
<Link
|
|
234
234
|
to={to}
|
|
235
|
-
tabIndex={-1}
|
|
235
|
+
tabIndex={disabled ? -1 : 0}
|
|
236
236
|
linkComponent={LinkComponent}
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
className={classify(css.linkComponent, {
|
|
238
|
+
[css.closed]: !opened,
|
|
239
|
+
})}
|
|
240
|
+
onClick={onChangeHandler}
|
|
239
241
|
>
|
|
240
242
|
{children}
|
|
241
243
|
</Link>
|
|
@@ -263,7 +265,7 @@ export const SideMenuLink: React$AbstractComponent<
|
|
|
263
265
|
)}
|
|
264
266
|
onClick={onChangeHandler}
|
|
265
267
|
ref={ref}
|
|
266
|
-
tabIndex={disabled ? -1 : tabIndex}
|
|
268
|
+
tabIndex={disabled || to !== undefined ? -1 : tabIndex}
|
|
267
269
|
disabled={disabled}
|
|
268
270
|
key={pageNameKey}
|
|
269
271
|
>
|
|
@@ -68,6 +68,19 @@
|
|
|
68
68
|
text-decoration: none;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
.linkComponent.closed {
|
|
72
|
+
width: size32;
|
|
73
|
+
min-width: size32;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.linkComponent:focus-visible {
|
|
78
|
+
border-radius: borderRadiusSmall;
|
|
79
|
+
outline: none;
|
|
80
|
+
box-shadow: borderWidthNone borderWidthNone borderWidthNone
|
|
81
|
+
borderWidthTertiary colorFocusPrimary;
|
|
82
|
+
}
|
|
83
|
+
|
|
71
84
|
.linkWrapper.selected {
|
|
72
85
|
background: colorSideMenuBackgroundSelected;
|
|
73
86
|
color: colorTextInversePrimary;
|