Skip to content

fix(Label): move key-value separator to left part of element#2580

Open
goshander wants to merge 2 commits intomainfrom
fix-label-key-value
Open

fix(Label): move key-value separator to left part of element#2580
goshander wants to merge 2 commits intomainfrom
fix-label-key-value

Conversation

@goshander
Copy link
Member

No description provided.

@gravity-ui
Copy link
Contributor

gravity-ui bot commented Feb 12, 2026

Preview is ready.

@gravity-ui
Copy link
Contributor

gravity-ui bot commented Feb 12, 2026

🎭 Component Tests Report is ready.


&__separator {
margin: 0 4px;
margin: 0 4px 0 2px;
Copy link

Choose a reason for hiding this comment

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

Would it be better to make these values token‑based?

Copy link
Member Author

Choose a reason for hiding this comment

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

Could you specify which tokens you mean?

Copy link

@ukqfhf ukqfhf Feb 13, 2026

Choose a reason for hiding this comment

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

--g-spacing-half for 2px and --g-spacing-1 or --g-spacing-base for 4px. At the moment, these values cannot be customized. Of course, it would be better if these values were relative like em, in this case, if the font size increases, then the distance from the separator should increase also.

Copy link

@ukqfhf ukqfhf Feb 13, 2026

Choose a reason for hiding this comment

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

Even better to specify component specific tokens like --comp-label-separator-margin or something at the top element to enable deep customization

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.

2 participants