Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Close buttons consistent #1329

Merged
merged 3 commits into from
Jul 28, 2023
Merged

Make Close buttons consistent #1329

merged 3 commits into from
Jul 28, 2023

Conversation

krschau
Copy link
Collaborator

@krschau krschau commented Jul 25, 2023

Summary of the pull request

We use a Close button ("X" button") in a few places in Dev Home. This change creates a CloseButton control so that styling (Margin, Padding, Alignment, Text) will be consistent throughout. Also remove FontIconSource and FontIconClose from SetupToolStyles.xaml, which are not used anywhere.

References and relevant issues

#916

Detailed description of the pull request / Additional comments

Validation steps performed

PR checklist

VerticalAlignment="Top"
BorderThickness="0"
Background="Transparent"
Padding="10">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need to add a localized AutomationProperties.Name to this control later, as the narrator will read it as "Button" and nothing else.

@dhoehna
Copy link
Contributor

dhoehna commented Jul 26, 2023

Can the common close button view be used in the setuptool project? That has a close button.

@krschau
Copy link
Collaborator Author

krschau commented Jul 26, 2023

Can the common close button view be used in the setuptool project? That has a close button.

@dhoehna Can you point me to where you're talking about? Searching I see there's two other places where glyph E711 are referenced, but since they're in their own control, I wasn't sure I should mess with them.

                            <ctControls:SettingsCard.ActionIcon>
                                <FontIcon FontFamily="{ThemeResource SymbolThemeFontFamily}" Glyph="&#xE711;"/>
                            </ctControls:SettingsCard.ActionIcon>

@dhoehna
Copy link
Contributor

dhoehna commented Jul 26, 2023

@krschau
Copy link
Collaborator Author

krschau commented Jul 26, 2023

@dhoehna I updated SummaryView to use it. I tried it out myself and it looked good, but you may want to double check it. (The Padding is a little bigger in my control, but only by 5 pixels)

@krschau krschau merged commit bf61c3d into main Jul 28, 2023
4 checks passed
@krschau krschau deleted the user/krschau/closebutton branch August 2, 2023 14:34
@krschau krschau restored the user/krschau/closebutton branch August 2, 2023 14:34
@krschau krschau deleted the user/krschau/closebutton branch August 2, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure dialog "exit" buttons are consistently styled
3 participants