Skip to content
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

Merged
merged 7 commits into from
Jan 9, 2024

Conversation

qradle-yndx
Copy link
Contributor

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

position: relative;

&_with-background {
padding: 8px 32px 48px;
Copy link
Contributor

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

);
background,
}) => {
const withBackground = Boolean(
Copy link
Contributor

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) ?

Copy link
Contributor Author

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?

@qradle-yndx qradle-yndx force-pushed the feat/add-card-layout-background branch from b2878e4 to 77d7b5d Compare January 9, 2024 12:11
gorgeousvlad
gorgeousvlad previously approved these changes Jan 9, 2024
@qradle-yndx qradle-yndx merged commit 86b5523 into main Jan 9, 2024
@qradle-yndx qradle-yndx deleted the feat/add-card-layout-background branch January 9, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants