Skip to content

Commit

Permalink
fix(expansion-panel): let label flex without sublabel and follow MD s…
Browse files Browse the repository at this point in the history
…pec better (#1068)
  • Loading branch information
emoralesb05 authored Jan 5, 2018
1 parent f26bd4e commit 251abb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<ng-template [cdkPortalHost]="expansionPanelSublabel"></ng-template>
<ng-template [ngIf]="!expansionPanelSublabel">{{sublabel}}</ng-template>
</div>
<span class="td-expansion-panel-spacer"></span>
<mat-icon class="td-expand-icon" *ngIf="!disabled" [@tdRotate]="expand">keyboard_arrow_down</mat-icon>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
.td-expansion-panel-header-content {
height: 48px;
padding: 0 16px;
padding: 0 24px;
// layout
box-sizing: border-box;
display: flex;
Expand All @@ -23,7 +23,7 @@
align-content: center;
max-width: 100%;
.td-expansion-label,
.td-expansion-panel-spacer {
.td-expansion-sublabel {
// flex
flex: 1;
}
Expand All @@ -42,9 +42,9 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-right: 5px;
margin-right: 16px;
::ng-deep [dir='rtl'] & {
margin-left: 5px;
margin-left: 16px;
margin-right: inherit;
}
}

0 comments on commit 251abb8

Please sign in to comment.