Skip to content

Commit

Permalink
fix: card header hasDivider apply only chind header
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-mui committed May 19, 2020
1 parent 75f3336 commit 1741a73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/card/card.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $b: aui-card;
}

&.hasDivider {
.#{$b} {
> .#{$b} {
&__header {
padding-bottom: 12px;
border-bottom: $default-border;
Expand Down
4 changes: 4 additions & 0 deletions stories/card/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ storiesOf('Card', module).add('card', () => {
<aui-card>
<div auiCardHeader>header</div>
<div style="line-height: 64px; background-color: #ededed;">content</div>
<aui-card [divider]="false">
<div auiCardHeader>header inside</div>
<div style="line-height: 64px; background-color: red;">content</div>
</aui-card>
</aui-card>
<aui-card [divider]="false">
Expand Down

0 comments on commit 1741a73

Please sign in to comment.