Skip to content

Commit

Permalink
Create generic classes for the generic DoubleInputRow component
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed May 14, 2024
1 parent ac2cd9c commit bb1f955
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stories/Library/Forms/input/DoubleInputRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ const DoubleInputRow: React.FC<DoubleInputRowProps> = ({
rightLabel,
}) => {
return (
<div className="contact-info-flex">
<div className="dpl-input__flex">
<Input
id={leftLabel}
label={leftLabel}
type="text"
classNames="patron__input patron__input--desktop mr-16"
classNames="dpl-input dpl-input--double mr-16"
/>
<Input
id={rightLabel}
label={rightLabel}
type="text"
classNames="patron__input patron__input--desktop"
classNames="dpl-input dpl-input--double"
/>
</div>
);
Expand Down
19 changes: 19 additions & 0 deletions src/stories/Library/Forms/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,24 @@
}
}

&__flex {
display: flex;
flex-direction: column;

@include media-query__small {
flex-direction: row;
}
}

&.dpl-input--double {
width: 100%;
margin-bottom: $s-xl;

@include media-query__small {
margin-bottom: 0px;
}
}

&__description {
color: $color__text-secondary-gray;
@include typography($typo__body-small);
Expand All @@ -41,6 +59,7 @@

/* Firefox */
input[type="number"] {
appearance: textfield;
-moz-appearance: textfield;
}
}

0 comments on commit bb1f955

Please sign in to comment.