@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @primer/components
2
2
 
3
- ## 0.0.0-2021101132313
3
+ ## 0.0.0-2021101135311
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/components",
3
- "version": "0.0.0-2021101132313",
3
+ "version": "0.0.0-2021101135311",
4
4
  "description": "Primer react components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",