style(settings): emphasize the save action

Give the settings save button a dedicated success-green background with black text and a matching lightened hover state while retaining focus and disabled behavior. Add a renderer regression test for the exact scoped class and color contract.
This commit is contained in:
Sucukdeluxe
2026-08-25 04:23:59 +02:00
parent cdd7fc2e7f
commit 5a04a62945
3 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ export function SettingsContent({ model, actions }: SettingsViewProps): ReactEle
<span aria-live="polite" className={`settings-save-state is-${model.saveState}`} role="status">{saveLabel}</span>
</div>
<button
className="settings-button settings-button-primary"
className="settings-button settings-button-primary settings-save-button"
disabled={saveDisabled}
onClick={actions.onSave}
type="button"
+11
View File
@@ -478,6 +478,12 @@
color: var(--ui-primary-text);
}
.settings-save-button {
border-color: var(--ui-success);
background: var(--ui-success);
color: #000000;
}
.settings-button-danger {
border-color: color-mix(in srgb, var(--ui-danger) 70%, var(--ui-border));
background: transparent;
@@ -496,6 +502,11 @@
color: var(--ui-primary-text);
}
.settings-save-button:hover:not(:disabled) {
background: color-mix(in srgb, var(--ui-success) 86%, #ffffff);
color: #000000;
}
.settings-account-workspace {
display: grid;
grid-template-rows: auto auto minmax(0, 1fr);