carbon-react 133.0.2 → 133.0.3

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.
@@ -139,7 +139,11 @@ export const ButtonToggle = ({
139
139
  onBlur: handleBlur,
140
140
  onClick: handleClick,
141
141
  onKeyDown: handleKeyDown
142
- }, tabbable ? {} : {
142
+ // In Safari non-text input elements do not gain focus on click. To get around this, we have to apply a tab-index of 0 here.
143
+ // This is to allow the ButtonToggle component to be focused when it is the first tabbable element.
144
+ }, tabbable ? {
145
+ tabIndex: 0
146
+ } : {
143
147
  tabIndex: -1
144
148
  }, {
145
149
  allowDeselect: allowDeselect,
@@ -148,7 +148,11 @@ const ButtonToggle = ({
148
148
  onBlur: handleBlur,
149
149
  onClick: handleClick,
150
150
  onKeyDown: handleKeyDown
151
- }, tabbable ? {} : {
151
+ // In Safari non-text input elements do not gain focus on click. To get around this, we have to apply a tab-index of 0 here.
152
+ // This is to allow the ButtonToggle component to be focused when it is the first tabbable element.
153
+ }, tabbable ? {
154
+ tabIndex: 0
155
+ } : {
152
156
  tabIndex: -1
153
157
  }, {
154
158
  allowDeselect: allowDeselect,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "133.0.2",
3
+ "version": "133.0.3",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",