aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/fields/extensions
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-10-02 15:49:00 +0000
committerEmiliano Ciavatta2020-10-02 15:54:34 +0000
commit6204c99e69d1707a79c5e56685b47310106c60b0 (patch)
tree0659149ecbb19ea7118f22e90ebb68c3bebe9518 /frontend/src/components/fields/extensions
parente4e317851930004d05d328a3934707e58bd4d2e2 (diff)
Minor scss improvements
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))) &&