-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[core] feat(Callout): visual modernisation #5834
[core] feat(Callout): visual modernisation #5834
Conversation
@@ -8,7 +8,7 @@ Callout | |||
|
|||
Markup: | |||
<div class="#{$ns}-callout {{.modifier}}"> | |||
<h4 class="#{$ns}-heading">Callout Heading</h4> | |||
<h5 class="#{$ns}-heading">Callout Heading</h5> |
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.
In line with the dialog update, reducing the heading level to fit better in dense UIs.
@@ -25,20 +25,20 @@ Styleguide callout | |||
@include running-typography(); | |||
background-color: rgba($gray3, 0.15); | |||
border-radius: $pt-border-radius; | |||
padding: $pt-grid-size ($pt-grid-size * 1.2) ($pt-grid-size * 0.9); | |||
padding: $pt-grid-size * 1.5; |
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.
- Make the spacing consistent all around.
- Increase inner spacing.
@@ -93,6 +97,7 @@ Styleguide callout | |||
|
|||
.#{$ns}-dark & { | |||
background-color: rgba($color, 0.2); | |||
color: map-get($pt-dark-intent-text-colors, $intent); |
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.
Make default text colour intent. Adding accessibility checks
Proposition for modernisation of callouts. Reduce unnecessary visual drag while retaining prominence.
h4
toh5
20px
to16px
Accessibility checks
Given background colours uses opacity, I chose to evaluate accessibility with the callout on a
$white
/$light-gray5
background for light theme and$dark-gray1
/$dark-gray2
for dark theme.