baseui 15.0.1 → 15.0.2

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.
@@ -285,13 +285,9 @@ const Toggle = exports.Toggle = (0, _styles.styled)('div', props => {
285
285
  Toggle.displayName = "Toggle";
286
286
  Toggle.displayName = 'Toggle';
287
287
  const ToggleTrack = exports.ToggleTrack = (0, _styles.styled)('div', props => {
288
- let backgroundColor = props.$theme.colors.toggleTrackFill;
289
- if (props.$disabled) {
290
- backgroundColor = props.$theme.colors.toggleTrackFillDisabled;
291
- } else if (props.$error && props.$checked) {
292
- backgroundColor = props.$theme.colors.tickFillError;
293
- }
288
+ const backgroundColor = props.$disabled ? props.$theme.colors.toggleTrackFillDisabled : props.$theme.colors.toggleTrackFill;
294
289
  return {
290
+ flex: '0 0 auto',
295
291
  alignItems: 'center',
296
292
  backgroundColor,
297
293
  borderTopLeftRadius: '7px',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baseui",
3
- "version": "15.0.1",
3
+ "version": "15.0.2",
4
4
  "description": "A React Component library implementing the Base design language",
5
5
  "keywords": [
6
6
  "react",