settings: Add a class to the target span.

This commit adds a specific class to the target span element, making
 the code more robust and less reliant on generic selectors.

Fixes part of #26691.
This commit is contained in:
Maneesh Shukla 2024-10-23 19:58:19 +05:30 committed by Tim Abbott
parent d37ebef0c0
commit 9ad85445f8
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
{{/unless}} {{/unless}}
<div class="dialog_submit_button_container"> <div class="dialog_submit_button_container">
<button class="modal__btn dialog_submit_button"{{#if single_footer_button}} aria-label="{{t 'Close this dialog window' }}" data-micromodal-close{{/if}}> <button class="modal__btn dialog_submit_button"{{#if single_footer_button}} aria-label="{{t 'Close this dialog window' }}" data-micromodal-close{{/if}}>
<span>{{{ html_submit_button }}}</span> <span class="submit-button-text">{{{ html_submit_button }}}</span>
<div class="modal__spinner"></div> <div class="modal__spinner"></div>
</button> </button>
</div> </div>

View File

@ -140,7 +140,7 @@
<div class="save-success"></div> <div class="save-success"></div>
<button type="button" class="modal__btn dialog_exit_button" aria-label="{{t 'Close this dialog window' }}" data-micromodal-close>{{t "Cancel" }}</button> <button type="button" class="modal__btn dialog_exit_button" aria-label="{{t 'Close this dialog window' }}" data-micromodal-close>{{t "Cancel" }}</button>
<button type="button" class="modal__btn dialog_submit_button"> <button type="button" class="modal__btn dialog_submit_button">
<span>{{t "Save changes"}}</span> <span class="submit-button-text">{{t "Save changes"}}</span>
<div class="modal__spinner"></div> <div class="modal__spinner"></div>
</button> </button>
</footer> </footer>