Skip to content

Conversation

@bdfranck
Copy link
Collaborator

@bdfranck bdfranck commented Oct 9, 2025

This PR updates the callout to matches the new v2 Callout component. It makes the following changes:

@bdfranck bdfranck marked this pull request as ready for review October 10, 2025 16:56
@bdfranck bdfranck force-pushed the benjifranck/v2-callout-update branch from 9c3ec2c to caf6669 Compare October 10, 2025 17:05
@bdfranck bdfranck linked an issue Oct 22, 2025 that may be closed by this pull request
Copy link
Collaborator

@twjeffery twjeffery left a comment

Choose a reason for hiding this comment

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

Looks great @bdfranck , just a couple adjustments suggested below.


Also, it looks like the heading font-weight is showing up as bold, not semi-bold. Now that I look at it, I think it's the same for the Modal heading where it uses semi-bold. It is showing font-weight 600, but visually looks off. Maybe we can connect to figure this one out.

Coded component (left), Figma component (right):

image

.v2.notification .heading {
display: flex;
flex-direction: row;
align-items: center;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be flex-start so that the icon lines up with the first line when the heading wraps to more than one line.

Image
Suggested change
align-items: center;
align-items: flex-start;

}
.v2.notification .heading-label {
margin-bottom: 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should be:

  • margin-top: space-3xs
    • to better vertically align the heading text with the icon
  • margin-bottom: space-3xs
    • to better vertically center the heading content within the heading container

Margin-top/bottom: 2xs

Image

Margin: 0

Image
Suggested change
margin-bottom: 0;
margin-top: var(--goa-space-3xs);
margin-bottom: var(--goa-space-3xs);

.v2.emphasis-low .heading-label:empty {
display: none;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This adjusts the "gap" between the icon and the content (when no header) to 8px instead of 12px

Suggested change
.v2.emphasis-low:has(.heading-label:empty) .heading {
padding-right: var(--goa-space-xs);
}

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.

Callout 2.0 update

3 participants