From cf4d47c54d01fdcf390129b59ad82ee9189f1059 Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Mon, 31 Jan 2022 11:23:00 -0600 Subject: [PATCH] Add a11y names to more controls (#12299) ## Summary of the Pull Request This adds names to more of our focusable elements. This should be the rest of them that I missed in #11364 ## References * #9990: a11y megathread * #11155: original version of this ## PR Checklist * [x] Should take care of #11996 once confirmed * [x] I work here ## Validation Steps Performed Used Accessibility Insights to verify. ## Detailed Description of the Pull Request / Additional comments There is one other weird bit. All the expanders that have content below the expander (not inline), show up as focusable, but don't have names. Even when I add names to them. I believe this is due to https://github.com/microsoft/microsoft-ui-xaml/issues/5820, which is fixed in https://github.com/microsoft/microsoft-ui-xaml/pull/6032, in https://github.com/microsoft/microsoft-ui-xaml/releases/tag/v2.8.0-prerelease.220118001. Unfortunately, we're on a 2.7 prerelease, so we don't have that fix yet. I may see how painful moving to that is, because we're gonna get another a11y ping as soon as 1.13 ships. I pre-emptively added names to these guys in f7ba158dc, so that the new MUX should just fix this without any thinking on our part. --- .../TerminalSettingsEditor/Appearances.xaml | 6 +- .../Profiles_Appearance.xaml | 2 + .../Resources/en-US/Resources.resw | 88 +++++++++++++++++++ 3 files changed, 95 insertions(+), 1 deletion(-) diff --git a/src/cascadia/TerminalSettingsEditor/Appearances.xaml b/src/cascadia/TerminalSettingsEditor/Appearances.xaml index 17b06dd5c6d..9b591711833 100644 --- a/src/cascadia/TerminalSettingsEditor/Appearances.xaml +++ b/src/cascadia/TerminalSettingsEditor/Appearances.xaml @@ -117,6 +117,7 @@ Visibility="{x:Bind Appearance.IsDefault, Mode=OneWay}"> - @@ -448,6 +451,7 @@ Sets the transparency of the window. A description for what the "acrylic opacity" setting does. Presented near "Profile_AcrylicOpacity.Header". + + Background opacity + Name for a control to determine the level of opacity for the background of the control. The user can choose to make the background of the app more or less opaque. + Background opacity Header for a control to determine the level of opacity for the background of the control. The user can choose to make the background of the app more or less opaque. @@ -519,6 +523,10 @@ By default Windows treats Ctrl+Alt as an alias for AltGr. When disabled, this behavior will be disabled. A description for what the "AltGr aliasing" setting does. Presented near "Profile_AltGrAliasing.Header". + + Text antialiasing + Name for a control to select the graphical anti-aliasing format of text. + Text antialiasing Header for a control to select the graphical anti-aliasing format of text. @@ -543,6 +551,14 @@ Appearance Header for a sub-page of profile settings focused on customizing the appearance of the profile. + + Background image path + Name for a control to determine the image presented on the background of the app. + + + Background image path + Name for a control to determine the image presented on the background of the app. + Background image path Header for a control to determine the image presented on the background of the app. @@ -551,6 +567,10 @@ File location of the image used in the background of the window. A description for what the "background image path" setting does. Presented near "Profile_BackgroundImage". + + Background image alignment + Name for a control to choose the visual alignment of the image presented on the background of the app. + Background image alignment Header for a control to choose the visual alignment of the image presented on the background of the app. @@ -599,6 +619,10 @@ Browse... Button label that opens a file picker in a new window. The "..." is standard to mean it will open a new window. + + Background image opacity + Name for a control to choose the opacity of the image presented on the background of the app. + Background image opacity Header for a control to choose the opacity of the image presented on the background of the app. @@ -607,6 +631,10 @@ Sets the transparency of the background image. A description for what the "background image opacity" setting does. Presented near "Profile_BackgroundImageOpacity". + + Background image stretch mode + Name for a control to choose the stretch mode of the image presented on the background of the app. Stretch mode is how the image is resized to fill its allocated space. + Background image stretch mode Header for a control to choose the stretch mode of the image presented on the background of the app. Stretch mode is how the image is resized to fill its allocated space. @@ -631,6 +659,10 @@ Uniform to fill An option to choose from for the "background image stretch mode" setting. When selected, the content is resized to fill the destination dimensions while it preserves its native aspect ratio. But if the aspect ratio of the destination differs, the image is clipped to fit in the space (to fill the space) + + Profile termination behavior + Name for a control to select the behavior of a terminal session (a profile) when it closes. + Profile termination behavior Header for a control to select the behavior of a terminal session (a profile) when it closes. @@ -655,6 +687,10 @@ Name of the color scheme to use. A description for what the "color scheme" setting does. Presented near "Profile_ColorScheme". + + Command line + Name for a control to determine commandline executable (i.e. a .exe file) to run when a terminal session of this profile is launched. + Command line Header for a control to determine commandline executable (i.e. a .exe file) to run when a terminal session of this profile is launched. @@ -679,6 +715,10 @@ Sets the percentage height of the cursor starting from the bottom. Only works with the vintage cursor shape. A description for what the "cursor height" setting does. Presented near "Profile_CursorHeight". + + Cursor shape + Name for a control to select the shape of the text cursor. + Cursor shape Header for a control to select the shape of the text cursor. @@ -731,6 +771,14 @@ Size of the font in points. A description for what the "font size" setting does. Presented near "Profile_FontSize". + + Font weight + Name for a control to select the weight (i.e. bold, thin, etc.) of the text in the app. + + + Font weight + Name for a control to select the weight (i.e. bold, thin, etc.) of the text in the app. + Font weight Header for a control to select the weight (i.e. bold, thin, etc.) of the text in the app. @@ -771,6 +819,10 @@ The number of lines above the ones displayed in the window you can scroll back to. A description for what the "history size" setting does. Presented near "Profile_HistorySize". + + Icon + Name for a control to determine what icon can be used to represent this profile. This is not necessarily a file path, but can be one. + Icon Header for a control to determine what icon can be used to represent this profile. This is not necessarily a file path, but can be one. @@ -787,6 +839,10 @@ Browse... Button label that opens a file picker in a new window. The "..." is standard to mean it will open a new window. + + Padding + Name for a control to determine the amount of space between text in a terminal and the edge of the window. + Padding Header for a control to determine the amount of space between text in a terminal and the edge of the window. The space can be any combination of the top, bottom, left, and right side of the window. @@ -811,6 +867,10 @@ When enabled, enables automatic adjustment of indistinguishable colors, which will, only when necessary, adjust the foreground color's lightness to make it more visible (based on the background color). A description for what the "adjust indistinguishable colors" setting does. Presented near "Profile_AdjustIndistinguishableColors". + + Scrollbar visibility + Name for a control to select the visibility of the scrollbar in a session. + Scrollbar visibility Header for a control to select the visibility of the scrollbar in a session. @@ -827,6 +887,10 @@ Scroll to input when typing Header for a control to toggle if keyboard input should automatically scroll to where the input was placed. + + Starting directory + Name for a control to determine the directory the session opens it at launch. This is on a text box that accepts folder paths. + Starting directory Header for a control to determine the directory the session opens it at launch. This is on a text box that accepts folder paths. @@ -859,6 +923,10 @@ Use the tab title to override the default title of the tab and suppress any title change messages from the application. A description for what the "suppress application title" setting does. Presented near "Profile_SuppressApplicationTitle". + + Tab title + Name for a control to determine the title of the tab. This is represented using a text box. + Tab title Header for a control to determine the title of the tab. This is represented using a text box. @@ -931,6 +999,10 @@ Maximized full screen focus An option to choose from for the "launch mode" setting. Opens the app maximized in full screen and in focus mode. + + Bell notification style + Name for a control to select the how the app notifies the user. "Bell" is the common term in terminals for the BEL character (like the metal device used to chime). + Bell notification style Header for a control to select the how the app notifies the user. "Bell" is the common term in terminals for the BEL character (like the metal device used to chime). @@ -1050,6 +1122,10 @@ The name of the profile that appears in the dropdown. A description for what the "name" setting does. Presented near "Profile_Name". + + Name + Name for a control to determine the name of the profile. This is a text box. + Name Header for a control to determine the name of the profile. This is a text box. @@ -1218,10 +1294,18 @@ If enabled, show all installed fonts in the list above. Otherwise, only show the list of monospace fonts. A description for what the supplementary "show all fonts" setting does. Presented near "Profile_FontFaceShowAllFonts". + + Create Appearance + Name for a control which creates an the unfocused appearance settings for this profile. + Create an unfocused appearance for this profile. This will be the appearance of the profile when it is inactive. A description for what the create unfocused appearance button does. + + Delete Appearance + Name for a control which deletes an the unfocused appearance settings for this profile. + Delete the unfocused appearance for this profile. A description for what the delete unfocused appearance button does. @@ -1294,6 +1378,10 @@ Text Formatting Header for a control to how text is formatted + + Intense text style + Name for a control to select how "intense" text is formatted (bold, bright, both or none) + Intense text style Header for a control to select how "intense" text is formatted (bold, bright, both or none)