-
Notifications
You must be signed in to change notification settings - Fork 14
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: add background for card-layout-block #754
Conversation
Preview is ready. |
position: relative; | ||
|
||
&_with-background { | ||
padding: 8px 32px 48px; |
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.
this indents should be from variables
src/blocks/CardLayout/CardLayout.tsx
Outdated
); | ||
background, | ||
}) => { | ||
const withBackground = Boolean( |
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.
why not just const withBackground = Boolean(background)
?
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.
Theoretically it is possible to pass an empty object to background
prop which would do nothing inside the BackgroundImage
rendering but it adds additional indents.
I added the same logic in the src/blocks/Form/Form.tsx
as well.
Should I fix it also?
b2878e4
to
77d7b5d
Compare
No description provided.