Skip to content

Commit

Permalink
fix: update style condition to make the style adjustment happen only …
Browse files Browse the repository at this point in the history
…for full-page card (#1899)
  • Loading branch information
at-susie authored Jan 19, 2024
1 parent b326e54 commit 43d1987
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/cards/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ const Cards = React.forwardRef(function <T = any>(
className={clsx(
hasToolsHeader && styles['has-header'],
isRefresh && styles.refresh,
styles[`header-variant-${computedVariant}`],
shouldRemoveHighContrastHeader && styles['remove-high-contrast-header']
)}
>
Expand Down
6 changes: 4 additions & 2 deletions src/cards/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@
// in order to use margin-bottom instead.
margin-top: awsui.$space-grid-gutter;
&.refresh {
&.remove-high-contrast-header {
margin-top: awsui.$space-scaled-s;
&.header-variant-full-page {
&.remove-high-contrast-header {
margin-top: awsui.$space-scaled-s;
}
}
}
}
Expand Down

0 comments on commit 43d1987

Please sign in to comment.