Skip to content

Conversation

@PahaN47
Copy link
Contributor

@PahaN47 PahaN47 commented Nov 1, 2025

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Playwright Test Component is ready.

@PahaN47 PahaN47 changed the title feat(FormBlock): add content labels, add stub feat(FormBlock): add content labels, stub, update background Nov 10, 2025
Comment on lines +15 to +16
Device.Desktop in value &&
Device.Mobile in value
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe need "or" between this conditions? Does it always have to be desktop and mobile at one time?

}
```

`stub?: React.ReactNode` - A stub that will be rendered instead of the form.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe name it "customFormComponent"?


const b = block('content-labels');

const ContentLabels = ({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not seem to fit all that well: here the labels need to be larger and the colors would have to be overridden manually anyway. All in all, using the uikit component wouldn't change the amount of required custom styles much and, I figured, could introduce some bugs with theming and such


export enum Device {
Desktop = 'desktop',
DesktopSmall = 'desktopSm',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this agreed with the designer and owners?
@NikitaCG

{
type: 'object',
additionalProperties: false,
required: [Device.Desktop, Device.Mobile],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it required? We can setup image only one device

Copy link
Contributor Author

@PahaN47 PahaN47 Nov 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thought process was: if you want the same background for everything, you do not use device-specific values, if you want to have a background for a single breakpoint range, then you could specify something like background: none for the rest

@PahaN47 PahaN47 merged commit 044ced8 into main Nov 26, 2025
4 checks passed
@PahaN47 PahaN47 deleted the feat/update-form-content branch November 26, 2025 10:19
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.

4 participants