mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(picker): mark main button as strong
This commit is contained in:
@ -318,5 +318,5 @@ $button-ios-round-border-radius: $button-round-border-radius
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
.button-strong-ios {
|
.button-strong-ios {
|
||||||
font-weight: bold;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
@ -438,7 +438,7 @@ export class PickerColumnCmp {
|
|||||||
<div class="picker-wrapper">
|
<div class="picker-wrapper">
|
||||||
<div class="picker-toolbar">
|
<div class="picker-toolbar">
|
||||||
<div *ngFor="let b of d.buttons" class="picker-toolbar-button" [ngClass]="b.cssRole">
|
<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}}
|
{{b.text}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@ -500,6 +500,9 @@ export class PickerCmp {
|
|||||||
}
|
}
|
||||||
return button;
|
return button;
|
||||||
});
|
});
|
||||||
|
if (data.buttons.length > 0) {
|
||||||
|
data.buttons[data.buttons.length - 1].strong = true;
|
||||||
|
}
|
||||||
|
|
||||||
// clean up dat data
|
// clean up dat data
|
||||||
data.columns = data.columns.map(column => {
|
data.columns = data.columns.map(column => {
|
||||||
|
@ -378,5 +378,5 @@ $navbar-ios-height: $toolbar-ios-height !default;
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
.bar-button-strong-ios {
|
.bar-button-strong-ios {
|
||||||
font-weight: bold;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user