Consolidate button wording in dialogs (“Close” / “Back”) #1688
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related #1684. Stacked onto #1687.
As discussed in https://github.com/tiny-pilot/tinypilot-pro/pull/1139, this PR consolidates the wording for “Cancel”/“Close”/“Back”/“OK” buttons across all our dialogs, to only use “Close” or “Back”. It also outlines the rules in the style guide.
id
attributes or CSS class names of the affected button elements, so their wording might now diverge from the label: e.g., we have a button labelledClose
, with acancel-hostname-change
id attribute. To me, the UI label and the internal technical name are conceptually different enough that it wouldn’t be worth the hassle to keep them aligned, and we already diverge in other places anyway (e.g., we have a button labelledPaste
, with aconfirm-btn
id attribute; or a button labelledApply
, with asave-btn
id attribute.)id
attribute / CSS class name, I’d suggest to do that in a separate refactoring step, and for all buttons in one go.Screen.Recording.2023-11-21.at.19.02.22.mov
Currently blocked by #1686 (e2e tests failing).