fix(ui): add admin-btn-danger variant so category delete confirm is styled
admin-btn-danger was referenced but never defined, so the 'Opravdu smazat' confirm rendered as a plain button. Define a solid danger button (uses --danger), matching the primary button's structure; the per-row delete trigger stays an outline via plan.css. (Includes the transparent-border button refinement so variants don't layout-shift.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1015,9 +1015,10 @@
|
||||
button it turns into; keep it an outline until the user commits. */
|
||||
.plan-cat-delete.admin-btn-danger {
|
||||
background: transparent;
|
||||
color: #dc2626;
|
||||
border: 1px solid color-mix(in srgb, #dc2626 40%, transparent);
|
||||
color: var(--danger);
|
||||
border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
|
||||
}
|
||||
.plan-cat-delete.admin-btn-danger:hover:not(:disabled) {
|
||||
background: color-mix(in srgb, #dc2626 12%, transparent);
|
||||
background: color-mix(in srgb, var(--danger) 12%, transparent);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user