Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions src/AndreGoepel.Design.Blazor/wwwroot/css/design.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,24 @@
/* borders */
--rz-border-color: var(--ag-border);
--rz-base-300: var(--ag-border);
/* Neutral base ramp — Radzen's light defaults otherwise leak into the dark shell:
--rz-base / --rz-on-base back ButtonStyle.Base (which DialogService.Confirm uses for
its Cancel button) and --rz-base-200 backs BadgeStyle.Light (measured 1.2:1 contrast
unmapped). Keep 200 a step below the already-mapped 300 (#4). */
--rz-base-200: var(--ag-hover);
--rz-base: var(--ag-hover);
--rz-on-base: var(--ag-text);
--rz-input-border-color: var(--ag-border2);
--rz-input-disabled-background: var(--ag-hover);
--rz-border-radius: 6px;
--rz-card-border-radius: 10px;

/* data grid surfaces (Radzen defaults are white — break dark mode row hover) */
/* data grid surfaces (Radzen defaults are white — break dark mode row hover and the
striped-row background, which otherwise alternates to Radzen's light default) (#4) */
--rz-grid-background-color: var(--ag-surface);
--rz-grid-hover-background-color: var(--ag-hover);
--rz-grid-stripe-background-color: var(--ag-hover);
--rz-grid-stripe-odd-background-color: var(--ag-surface);

/* status colours */
--rz-success: var(--ag-accent);
Expand Down Expand Up @@ -261,7 +271,13 @@ h4:focus-visible, h5:focus-visible, h6:focus-visible {
color: var(--ag-text2);
}

.rz-listbox .rz-listbox-item:hover {
/* Radzen's material-base hover rule is
`.rz-listbox:not(.rz-state-disabled) .rz-listbox-item:hover:hover` — the doubled
`:hover` and the `:not()` are a deliberate specificity bump. A plain
`.rz-listbox-item:hover` loses to it, leaving the light base-theme hover colour in
dark mode (unreadable dark text on a light row). Match the selector exactly so this
layer — loaded after material-base — wins on source order. */
.rz-listbox:not(.rz-state-disabled) .rz-listbox-item:hover:hover {
background: var(--ag-hover);
color: var(--ag-text);
}
Expand Down