Skip to content

Conversation

@PosikBoy
Copy link
Contributor

Closes #2560

@PosikBoy PosikBoy requested a review from Alutery as a code owner January 23, 2026 12:56
@korvin89
Copy link
Contributor

@PosikBoy Could u provide more detailed information in PR title?

@gravity-ui
Copy link
Contributor

gravity-ui bot commented Jan 23, 2026

Preview is ready.

@gravity-ui
Copy link
Contributor

gravity-ui bot commented Jan 23, 2026

🎭 Component Tests Report is ready.

@PosikBoy PosikBoy changed the title fix(Dialog): moved CloseButton fix(Dialog): Moved CloseButton to the top of dialog in DOM, marked caption in DialogHeader as h2 Jan 23, 2026
@PosikBoy
Copy link
Contributor Author

@PosikBoy Could u provide more detailed information in PR title?

It was like draft) Added detailed information in title

@PosikBoy PosikBoy changed the title fix(Dialog): Moved CloseButton to the top of dialog in DOM, marked caption in DialogHeader as h2 fix(Dialog): Moved close button to the top of dialog in DOM, marked caption in dialog header as h2 Jan 23, 2026
@PosikBoy PosikBoy changed the title fix(Dialog): Moved close button to the top of dialog in DOM, marked caption in dialog header as h2 fix(Dialog): Moved close button to the top of dialog in dom, marked caption in dialog header as h2 Jan 23, 2026
@PosikBoy PosikBoy changed the title fix(Dialog): Moved close button to the top of dialog in dom, marked caption in dialog header as h2 fix(dialog): moved close button to the top of dialog in dom, marked caption in dialog header as h2 Jan 23, 2026
<div className={b(null, className)}>
{insertBefore}
<div className={b('caption')} id={id}>
<h2 className={b('caption')} id={id}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe use Text component and add as field to DialogHeaderProps? And return div as default?

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!
Please update the PR title to reflect the last changes

<div className={b(null, className)}>
{insertBefore}
<div className={b('caption')} id={id}>
<Text as={as} className={b('caption')} id={id}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use variant prop subheader-3 instead of setting font styles in CSS

@amje
Copy link
Contributor

amje commented Jan 27, 2026

@PosikBoy Is it best practice to put close button first in tab order?

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.

Dialog: «Close» button located at the end of the dialog window and caption is not marked as heading

4 participants