react-crud-mobile 1.3.328 → 1.3.330

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.
@@ -822,10 +822,11 @@ function UIInput(props) {
822
822
  var size = element.size;
823
823
  var css = {};
824
824
  if (size === 'small') {
825
- css.height = 33;
825
+ css.height = 30;
826
826
  css.fontSize = 12;
827
827
  }
828
828
  css = _extends({}, style(type), css, style('input'));
829
+ css.lineHeight = parseInt(css.fontSize) + 3;
829
830
  return css;
830
831
  });
831
832
  if (defs.autoHeight) {
@@ -1233,15 +1234,18 @@ function UIToggle(props) {
1233
1234
  if (!style.color) {
1234
1235
  style.color = '#ffffff';
1235
1236
  }
1237
+ var backgroundColor = item.backgroundColor;
1238
+ var color = item.color;
1239
+ if (item.backgroundColor) style = _extends({}, style, {
1240
+ backgroundColor: backgroundColor
1241
+ });
1242
+ if (item.color) style = _extends({}, style, {
1243
+ color: color
1244
+ });
1245
+ } else {
1246
+ style.backgroundColor = '#fff';
1247
+ style.color = '#000';
1236
1248
  }
1237
- var backgroundColor = item.backgroundColor;
1238
- var color = item.color;
1239
- if (item.backgroundColor) style = _extends({}, style, {
1240
- backgroundColor: backgroundColor
1241
- });
1242
- if (item.color) style = _extends({}, style, {
1243
- color: color
1244
- });
1245
1249
  style.width = width;
1246
1250
  return style;
1247
1251
  };