Skip to content

feat(ChangelogDialog): add modalClassName prop - #405

Merged
Lunory merged 2 commits into
mainfrom
fix/changelog-dialog-modal-class
Aug 20, 2026
Merged

feat(ChangelogDialog): add modalClassName prop#405
Lunory merged 2 commits into
mainfrom
fix/changelog-dialog-modal-class

Conversation

@Lunory

@Lunory Lunory commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

The --gc-changelog-dialog-* variables are read by the modal, which is rendered in a portal above the element className is applied to, so they could only be set globally. modalClassName gives a per-instance way to set them.

The `--gc-changelog-dialog-*` variables are read by the modal, which is
rendered in a portal above the element `className` is applied to, so they
could only be set globally. `modalClassName` gives a per-instance way to
set them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@gravity-ui-bot

Copy link
Copy Markdown
Contributor

Preview is ready.

Set `--g-modal-max-width` on the modal via `modalClassName` instead of
going through a component-specific alias. The deprecated
`--gc-changelog-dialog-width` keeps working.

`--gc-changelog-dialog-max-width` has not been released yet, so nothing
in a published version depends on it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Lunory
Lunory force-pushed the fix/changelog-dialog-modal-class branch from d4a5b7a to 7879ddf Compare August 20, 2026 11:55
@Lunory
Lunory merged commit 7c73030 into main Aug 20, 2026
4 checks passed
@Lunory
Lunory deleted the fix/changelog-dialog-modal-class branch August 20, 2026 11:58
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