feat: abstract buttons

This commit is contained in:
Lala, Shahd
2026-05-04 09:56:09 +02:00
parent 361ce1e817
commit d471eef7af
15 changed files with 103 additions and 144 deletions
@@ -2,7 +2,7 @@
<div class="promotion-dialog">
<div class="promotion-header">
<h3>Pawn Promotion</h3>
<button class="close-btn" (click)="close()" aria-label="Close">&times;</button>
<button class="app-btn" (click)="close()" aria-label="Close" style="padding:0.2rem 0.5rem;min-width:unset;">&times;</button>
</div>
<div class="promotion-body">
@@ -11,7 +11,8 @@
<div class="promotion-options">
@for (piece of promotionPieces; track piece.type) {
<button
class="promotion-button"
type="button"
class="app-btn promotion-choice"
[attr.data-piece]="piece.type"
(click)="selectPromotion(piece.type)"
[title]="piece.label"