Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/rare-otters-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Adjust ConfirmationDialog heading styling
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@

> h1 {

Copilot AI Oct 6, 2025

Copy link

Choose a reason for hiding this comment

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

The CSS selector > h1 may not match the new Heading component structure. Consider updating the selector to target the actual rendered element or use a more generic approach to ensure the padding and flex-grow styles are properly applied.

Suggested change
> h1 {
> * {

Copilot uses AI. Check for mistakes.
padding: var(--base-size-6) var(--base-size-8);

/* override default margin */
margin: 0;
font-size: var(--text-title-size-medium);
font-weight: var(--text-title-weight-medium);
flex-grow: 1;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {Dialog} from '../Dialog/Dialog'
import {useFocusZone} from '../hooks/useFocusZone'
import BaseStyles from '../BaseStyles'
import classes from './ConfirmationDialog.module.css'
import Heading from '../Heading'

/**
* Props to customize the ConfirmationDialog.
Expand Down Expand Up @@ -89,7 +90,9 @@ const ConfirmationHeader: React.FC<React.PropsWithChildren<DialogHeaderProps>> =

return (
<div className={classes.ConfirmationHeader}>
<h1 id={dialogLabelId}>{title}</h1>
<Heading id={dialogLabelId} as="h1" variant="small">
{title}
</Heading>
<Dialog.CloseButton onClose={onCloseClick} />
</div>
)
Expand Down
Loading