Skip to content

Commit 3550e19

Browse files
Add Auto Prop Name to 'Delete Color Scheme' button (#15994)
Since the "delete color scheme" button is filled with an icon and a Text Box, the text is not automatically exposed as the autoProp.Name for the button. We have to do it manually just like we do for "delete profile". Validated manually using accessibility insights Closes #15984
1 parent 4370da9 commit 3550e19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cascadia/TerminalSettingsEditor/EditColorScheme.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
3535
Automation::AutomationProperties::SetName(RenameAcceptButton(), RS_(L"RenameAccept/[using:Windows.UI.Xaml.Controls]ToolTipService/ToolTip"));
3636
Automation::AutomationProperties::SetName(RenameCancelButton(), RS_(L"RenameCancel/[using:Windows.UI.Xaml.Controls]ToolTipService/ToolTip"));
3737
Automation::AutomationProperties::SetName(SetAsDefaultButton(), RS_(L"ColorScheme_SetAsDefault/Header"));
38+
Automation::AutomationProperties::SetName(DeleteButton(), RS_(L"ColorScheme_DeleteButton/Text"));
3839
}
3940

4041
void EditColorScheme::OnNavigatedTo(const NavigationEventArgs& e)

0 commit comments

Comments
 (0)