summaryrefslogtreecommitdiffstats
path: root/src/components/Form
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Form')
-rw-r--r--src/components/Form/Form.module.scss7
-rw-r--r--src/components/Form/Form.tsx2
2 files changed, 3 insertions, 6 deletions
diff --git a/src/components/Form/Form.module.scss b/src/components/Form/Form.module.scss
index 25fce19..bfb009e 100644
--- a/src/components/Form/Form.module.scss
+++ b/src/components/Form/Form.module.scss
@@ -3,14 +3,11 @@
.wrapper {
width: 100%;
- &--search {
+ &--search,
+ &--theme {
display: flex;
flex-flow: row nowrap;
}
-
- &--theme {
- line-height: 1;
- }
}
.item {
diff --git a/src/components/Form/Form.tsx b/src/components/Form/Form.tsx
index 048219c..74a4efb 100644
--- a/src/components/Form/Form.tsx
+++ b/src/components/Form/Form.tsx
@@ -10,7 +10,7 @@ const Form = ({
submitHandler: any;
modifier?: string;
}) => {
- const withModifier = modifier ? `wrapper--${modifier}` : '';
+ const withModifier = modifier ? styles[`wrapper--${modifier}`] : '';
const classes = `${styles.wrapper} ${withModifier}`;
return (