Skip to content

Commit

Permalink
Added margin to Card Footer
Browse files Browse the repository at this point in the history
  • Loading branch information
elileto committed Feb 6, 2019
1 parent 09d3291 commit 7ff7e36
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f

### Bug fixes

- Adjusted padding to `Card`'s sections, header, and footer to separate actions in header and footer actions in footer ([#962](https://github.com/Shopify/polaris-react/pull/962))

### Documentation

- Updated docs about App Bridge usage in AppProvider ([#945](https://github.com/Shopify/polaris-react/pull/945))
Expand Down
11 changes: 8 additions & 3 deletions src/components/Card/Card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
padding: spacing() spacing() 0;

@include page-content-when-not-fully-condensed {
padding: spacing(loose) spacing(loose) 0;
padding: spacing(loose) spacing(loose) spacing();
}
}

Expand All @@ -42,6 +42,11 @@

.Section-subdued {
background-color: color('sky', 'lighter');
border-top: border-width() solid color('sky');

+ .Footer {
border-top: border-width() solid color('sky');
}
}

.SectionHeader {
Expand All @@ -61,9 +66,9 @@
.Footer {
display: flex;
justify-content: flex-end;
padding: 0 spacing() spacing();
padding: spacing() spacing();

@include page-content-when-not-fully-condensed {
padding: 0 spacing(loose) spacing(loose);
padding: spacing() spacing(loose) spacing(loose);
}
}

0 comments on commit 7ff7e36

Please sign in to comment.