carbon-react 133.0.1 → 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,
@@ -106,6 +106,7 @@ const StyledCheckbox = styled.div`
106
106
  svg {
107
107
  height: 24px;
108
108
  width: 24px;
109
+ min-width: 24px;
109
110
  }
110
111
 
111
112
  ${StyledFieldHelp} {
@@ -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,
@@ -115,6 +115,7 @@ const StyledCheckbox = _styledComponents.default.div`
115
115
  svg {
116
116
  height: 24px;
117
117
  width: 24px;
118
+ min-width: 24px;
118
119
  }
119
120
 
120
121
  ${_fieldHelp.default} {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "133.0.1",
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",