-
Notifications
You must be signed in to change notification settings - Fork 842
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
Card theme title parity and margin fix #704
Conversation
cc @jen-huang who noticed this. |
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.
Thanks!
src/components/card/_card.scss
Outdated
@@ -52,6 +53,7 @@ $euiCardSpacing: map-get($euiPanelPaddingModifiers, "paddingMedium"); | |||
|
|||
/** | |||
* 1. Footer is always at the bottom. | |||
* 2. Footer is always at the bottom. |
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.
Duplicate comment
src/components/card/_card.scss
Outdated
@@ -79,14 +81,18 @@ $euiCardSpacing: map-get($euiPanelPaddingModifiers, "paddingMedium"); | |||
} | |||
} | |||
|
|||
// If an icon or image exists, add some space | |||
.euiCard__top + .euiCard__content { | |||
margin-top: $euiSize; |
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 like I was originally using the $euiCardSpacing
variable for margin-top
This also fixes an issue with margins when no icon is used.
before
after