diff --git a/src/AdminUI/AdminPortalMudTheme.cs b/src/AdminUI/AdminPortalMudTheme.cs index 45b2ad772..ffc66328e 100644 --- a/src/AdminUI/AdminPortalMudTheme.cs +++ b/src/AdminUI/AdminPortalMudTheme.cs @@ -21,7 +21,7 @@ static AdminPortalMudTheme() Black = "#27272f", Background = "#181818", BackgroundGrey = "#27272f", - Surface = "#373740", + Surface = "#333333", DrawerBackground = "#333333", DrawerText = "#ffffffff", DrawerIcon = "rgba(255,255,255, 0.50)", diff --git a/src/AdminUI/Helpers/DateTimeFormatter.cs b/src/AdminUI/Helpers/DateTimeFormatter.cs index 99e23b58d..393d9abc4 100644 --- a/src/AdminUI/Helpers/DateTimeFormatter.cs +++ b/src/AdminUI/Helpers/DateTimeFormatter.cs @@ -5,6 +5,6 @@ public static class DateTimeFormatter public static string FormatLongDate(DateTime? date) => date.HasValue // Format based on https://www.ssw.com.au/rules/weekdays-on-date-selectors/ - ? $"{date.Value:ddd}, {date.Value:d} {date.Value:t}" + ? $"{date.Value:ddd} {date.Value:d} {date.Value:t}" : "-"; } \ No newline at end of file diff --git a/src/AdminUI/Pages/SendNotification.razor b/src/AdminUI/Pages/SendNotification.razor index 205d176dd..0e9da76b6 100644 --- a/src/AdminUI/Pages/SendNotification.razor +++ b/src/AdminUI/Pages/SendNotification.razor @@ -1,4 +1,4 @@ -@page "/send-notification" +@page "/send-notification" @using Microsoft.AspNetCore.Authorization @using MudBlazor @@ -16,7 +16,7 @@
- + @@ -37,52 +37,53 @@ - - - - - - - - - @foreach (var tz in _timezones) - { - @tz.Value - } - + +
+ + + + @foreach (var tz in _timezones) + { + @tz.Value + } + +
- + Target* + data-testid="target-radio-group" Class="radio-group-inline"> Everyone + + + + + + Requires Achievement - Requires Role - - - - - - + + + + Requires Role + .mud-item { + padding: 8px 0 !important; + } } \ No newline at end of file diff --git a/src/AdminUI/wwwroot/css/app.css b/src/AdminUI/wwwroot/css/app.css index 38fa7d2b5..a323810ef 100644 --- a/src/AdminUI/wwwroot/css/app.css +++ b/src/AdminUI/wwwroot/css/app.css @@ -51,6 +51,9 @@ html, body { /* Smokey white background for active (focused) inputs */ :root { --smokey-white: #F7F7F7; + --ssw-red: #cc4141; + --validation-pink: #ff8a8a; + --label-grey: rgba(255, 255, 255, 0.5); } /* Generic inputs */ @@ -58,6 +61,13 @@ input:focus, textarea:focus, select:focus { background-color: var(--smokey-white); } +/* Ensure all inputs have consistent padding */ +input.mud-input-slot, +textarea.mud-input-slot { + padding-left: 12px !important; + padding-right: 12px !important; +} + /* MudTextField - black text on smokey white when focused */ /* Target the input element directly as it has the mud-input-slot class */ input.mud-input-slot:focus, @@ -102,6 +112,57 @@ textarea.mud-input-slot:not(:focus), background-color: transparent; } +/* ====================== + Label Styling - Keep grey for focused inputs (no red) + ====================== */ +/* Override MudBlazor's default red label on focus */ +.mud-input-label, +.mud-input-label-filled, +.mud-input-label-outlined, +.mud-input-control .mud-input-label, +.mud-input-control.mud-input-control-focused .mud-input-label, +.mud-input-control:focus-within .mud-input-label { + color: var(--label-grey) !important; +} + +/* Remove red underline on focused inputs */ +.mud-input.mud-input-underline:after, +.mud-input-control-focused .mud-input.mud-input-underline:after { + border-bottom-color: transparent !important; +} + +/* Remove red border on outlined focused inputs */ +.mud-input-outlined.mud-focused .mud-input-outlined-border, +.mud-input-control-focused .mud-input-outlined-border { + border-color: rgba(255, 255, 255, 0.3) !important; +} + +/* Ensure textarea has proper padding when focused */ +textarea.mud-input-slot { + padding: 12px !important; +} + +/* ====================== + Validation Error Styling + ====================== */ +/* Error state: SSW red border around the entire field */ +.mud-input-control.mud-input-error .mud-input, +.mud-input-control.mud-input-error .mud-input-outlined-border { + border: 2px solid var(--ssw-red) !important; + border-radius: 4px; +} + +/* Error state: light red/pink validation message text */ +.mud-input-helper-text.mud-input-error, +.mud-input-control.mud-input-error .mud-input-helper-text { + color: var(--validation-pink) !important; +} + +/* Error state: label should also be light red/pink */ +.mud-input-control.mud-input-error .mud-input-label { + color: var(--validation-pink) !important; +} + /* Remove red on black background */ .mud-selected-item .mud-list-item-text .mud-typography { color: #ffffff;