-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(FormRow): add direction prop #104
Conversation
Preview is ready. |
display: flex; | ||
margin-bottom: 20px; | ||
|
||
&_direction_row { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put modifiers inside element selectors pls
&__left {
#{$block}_direction_row & {}
#{$block}_direction_column & {}
}
src/components/FormRow/types.ts
Outdated
@@ -13,6 +13,8 @@ export interface FormRowProps { | |||
/** Field component itself. `<FormRow.FieldDescription/>` could be used here | |||
* next to field component itself */ | |||
children?: ReactNode; | |||
/** Direction in which the elements are placed */ | |||
direction?: 'row' | 'column'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add alias ForRowDirection
for this union and export it
39f8499
to
e3eaade
Compare
e3eaade
to
d48d3ff
Compare
src/components/FormRow/FormRow.scss
Outdated
} | ||
|
||
#{$block}_direction_column & { | ||
width: 100%; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this required with display: flex
?
No description provided.