Skip to content

Commit af7139b

Browse files
committed
fix(picker): mark main button as strong
1 parent 672266d commit af7139b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/components/button/button.ios.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,5 +318,5 @@ $button-ios-round-border-radius: $button-round-border-radius
318318
// --------------------------------------------------
319319

320320
.button-strong-ios {
321-
font-weight: bold;
321+
font-weight: 600;
322322
}

src/components/picker/picker-component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ export class PickerColumnCmp {
438438
<div class="picker-wrapper">
439439
<div class="picker-toolbar">
440440
<div *ngFor="let b of d.buttons" class="picker-toolbar-button" [ngClass]="b.cssRole">
441-
<button ion-button (click)="btnClick(b)" [ngClass]="b.cssClass" class="picker-button" clear>
441+
<button ion-button (click)="btnClick(b)" [ngClass]="b.cssClass" class="picker-button" clear [strong]="b.strong">
442442
{{b.text}}
443443
</button>
444444
</div>
@@ -500,6 +500,9 @@ export class PickerCmp {
500500
}
501501
return button;
502502
});
503+
if (data.buttons.length > 0) {
504+
data.buttons[data.buttons.length - 1].strong = true;
505+
}
503506

504507
// clean up dat data
505508
data.columns = data.columns.map(column => {

src/components/toolbar/toolbar.ios.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,5 +378,5 @@ $navbar-ios-height: $toolbar-ios-height !default;
378378
// --------------------------------------------------
379379

380380
.bar-button-strong-ios {
381-
font-weight: bold;
381+
font-weight: 600;
382382
}

0 commit comments

Comments
 (0)