Skip to content

Commit

Permalink
fix(picker): mark main button as strong
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Dec 5, 2016
1 parent 672266d commit af7139b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/button/button.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -318,5 +318,5 @@ $button-ios-round-border-radius: $button-round-border-radius
// --------------------------------------------------

.button-strong-ios {
font-weight: bold;
font-weight: 600;
}
5 changes: 4 additions & 1 deletion src/components/picker/picker-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ export class PickerColumnCmp {
<div class="picker-wrapper">
<div class="picker-toolbar">
<div *ngFor="let b of d.buttons" class="picker-toolbar-button" [ngClass]="b.cssRole">
<button ion-button (click)="btnClick(b)" [ngClass]="b.cssClass" class="picker-button" clear>
<button ion-button (click)="btnClick(b)" [ngClass]="b.cssClass" class="picker-button" clear [strong]="b.strong">
{{b.text}}
</button>
</div>
Expand Down Expand Up @@ -500,6 +500,9 @@ export class PickerCmp {
}
return button;
});
if (data.buttons.length > 0) {
data.buttons[data.buttons.length - 1].strong = true;
}

// clean up dat data
data.columns = data.columns.map(column => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/toolbar/toolbar.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -378,5 +378,5 @@ $navbar-ios-height: $toolbar-ios-height !default;
// --------------------------------------------------

.bar-button-strong-ios {
font-weight: bold;
font-weight: 600;
}

0 comments on commit af7139b

Please sign in to comment.