@primer/components 0.0.0-2021101132313 → 0.0.0-2021101135311
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 +1 -1
- package/lib/ActionList2/Item.js +3 -1
- package/lib-esm/ActionList2/Item.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/ActionList2/Item.js
CHANGED
|
@@ -99,7 +99,8 @@ const Item = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
99
99
|
backgroundColor: (0, _ThemeProvider.useColorSchemeVar)(customItemTheme.hover, 'inherit')
|
|
100
100
|
},
|
|
101
101
|
':focus:not([aria-disabled])': {
|
|
102
|
-
backgroundColor: (0, _ThemeProvider.useColorSchemeVar)(customItemTheme.focus, 'inherit')
|
|
102
|
+
backgroundColor: (0, _ThemeProvider.useColorSchemeVar)(customItemTheme.focus, 'inherit'),
|
|
103
|
+
outline: 'none'
|
|
103
104
|
}
|
|
104
105
|
},
|
|
105
106
|
|
|
@@ -156,6 +157,7 @@ const Item = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
156
157
|
onClick: clickHandler,
|
|
157
158
|
"aria-selected": selected,
|
|
158
159
|
"aria-disabled": disabled ? true : undefined,
|
|
160
|
+
tabIndex: disabled ? undefined : -1,
|
|
159
161
|
"aria-labelledby": labelId,
|
|
160
162
|
"aria-describedby": [slots.InlineDescription && inlineDescriptionId, slots.BlockDescription && blockDescriptionId].filter(Boolean).join(' ')
|
|
161
163
|
}, props), /*#__PURE__*/_react.default.createElement(_Selection.Selection, {
|
|
@@ -75,7 +75,8 @@ export const Item = /*#__PURE__*/React.forwardRef(({
|
|
|
75
75
|
backgroundColor: useColorSchemeVar(customItemTheme.hover, 'inherit')
|
|
76
76
|
},
|
|
77
77
|
':focus:not([aria-disabled])': {
|
|
78
|
-
backgroundColor: useColorSchemeVar(customItemTheme.focus, 'inherit')
|
|
78
|
+
backgroundColor: useColorSchemeVar(customItemTheme.focus, 'inherit'),
|
|
79
|
+
outline: 'none'
|
|
79
80
|
}
|
|
80
81
|
},
|
|
81
82
|
|
|
@@ -130,6 +131,7 @@ export const Item = /*#__PURE__*/React.forwardRef(({
|
|
|
130
131
|
onClick: clickHandler,
|
|
131
132
|
"aria-selected": selected,
|
|
132
133
|
"aria-disabled": disabled ? true : undefined,
|
|
134
|
+
tabIndex: disabled ? undefined : -1,
|
|
133
135
|
"aria-labelledby": labelId,
|
|
134
136
|
"aria-describedby": [slots.InlineDescription && inlineDescriptionId, slots.BlockDescription && blockDescriptionId].filter(Boolean).join(' ')
|
|
135
137
|
}, props), /*#__PURE__*/React.createElement(Selection, {
|