settings: Update save button style when "Saved" is shown.

This commit updates the save button style in the settings component to
ensure that the button appears as a borderless attention + success
intent action button alongside the "Saved" label, when an updated
setting is saved.
This commit is contained in:
Sayam Samal
2025-04-02 04:34:34 +05:30
committed by Tim Abbott
parent 203ca08446
commit b115368a81
4 changed files with 54 additions and 6 deletions

View File

@@ -19,10 +19,13 @@ mock_esm("../src/loading", {
mock_esm("../src/buttons", {
show_button_loading_indicator: noop,
hide_button_loading_indicator: noop,
modify_action_button_style: noop,
});
mock_esm("../src/scroll_util", {scroll_element_into_container: noop});
set_global("document", "document-stub");
set_global("requestAnimationFrame", (func) => func());
const settings_account = zrequire("settings_account");
const settings_components = zrequire("settings_components");
const settings_config = zrequire("settings_config");