Skip to content

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