aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/fields/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/fields/extensions')
-rw-r--r--frontend/src/components/fields/extensions/ColorField.scss8
-rw-r--r--frontend/src/components/fields/extensions/NumericField.js2
2 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/components/fields/extensions/ColorField.scss b/frontend/src/components/fields/extensions/ColorField.scss
index 6eabbda..26b21f1 100644
--- a/frontend/src/components/fields/extensions/ColorField.scss
+++ b/frontend/src/components/fields/extensions/ColorField.scss
@@ -1,4 +1,4 @@
-@import '../../../colors.scss';
+@import "../../../colors.scss";
.color-field {
.color-input {
@@ -9,8 +9,8 @@
flex: 1;
input {
- border-bottom-right-radius: 0 !important;
border-top-right-radius: 0 !important;
+ border-bottom-right-radius: 0 !important;
}
}
@@ -20,8 +20,8 @@
.picker-button {
font-size: 0.8em;
padding: 8px 15px;
- border-bottom-right-radius: 5px;
border-top-right-radius: 5px;
+ border-bottom-right-radius: 5px;
background-color: $color-primary-1;
}
}
@@ -29,8 +29,8 @@
.color-error {
font-size: 0.8em;
- color: $color-secondary-0;
margin-left: 10px;
+ color: $color-secondary-0;
}
}
diff --git a/frontend/src/components/fields/extensions/NumericField.js b/frontend/src/components/fields/extensions/NumericField.js
index ed81ed7..19a9e46 100644
--- a/frontend/src/components/fields/extensions/NumericField.js
+++ b/frontend/src/components/fields/extensions/NumericField.js
@@ -21,7 +21,7 @@ class NumericField extends Component {
value = value.toString().replace(/[^\d]/gi, '');
let intValue = 0;
if (value !== "") {
- intValue = parseInt(value);
+ intValue = parseInt(value, 10);
}
const valid =
(!this.props.validate || (typeof this.props.validate === "function" && this.props.validate(intValue))) &&