- 
                Notifications
    You must be signed in to change notification settings 
- Fork 34
feat(#2915): callout v2 layout and emphasis levels #3100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v2-2998-coded-component-updates
Are you sure you want to change the base?
feat(#2915): callout v2 layout and emphasis levels #3100
Conversation
9c3ec2c    to
    caf6669      
    Compare
  
    There was a problem hiding this 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):
 
      
    | .v2.notification .heading { | ||
| display: flex; | ||
| flex-direction: row; | ||
| align-items: center; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } | ||
| .v2.notification .heading-label { | ||
| margin-bottom: 0; | 
There was a problem hiding this comment.
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
 
Margin: 0
 
  | margin-bottom: 0; | |
| margin-top: var(--goa-space-3xs); | |
| margin-bottom: var(--goa-space-3xs); | 
| .v2.emphasis-low .heading-label:empty { | ||
| display: none; | ||
| } | ||
There was a problem hiding this comment.
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
| .v2.emphasis-low:has(.heading-label:empty) .heading { | |
| padding-right: var(--goa-space-xs); | |
| } | 

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