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

Add + button and fix tab column sizing #902

Merged
merged 6 commits into from
Jun 21, 2019
Merged

Conversation

teaP
Copy link
Contributor

@teaP teaP commented Jun 19, 2019

Added a + button next to the tabs, IsAddButtonVisible property, and AddButtonClick event. Changed tests to use the new button and to test that visibility is hooked up properly. I originally had an accessibility change to go with this that made the + button (among other things) part of the accessible tree, but we've just decided to make TabView have a ListView instead of being a ListView so I've removed that part for now (since it won't be needed) and disabled the tests temporarily.

Also as part of this I discovered that the tab column was being sized incorrectly, so that the + button would never rest next to them; I fixed the logic so that the + and the right content area sit where they're supposed to.

I also updated colors as agreed upon by us and Terminal.

@teaP teaP requested a review from a team as a code owner June 19, 2019 23:38
dev/TabView/InteractionTests/TabViewTests.cs Show resolved Hide resolved
dev/TabView/TabView.xaml Outdated Show resolved Hide resolved
dev/TabView/TabView_themeresources.xaml Show resolved Hide resolved
Copy link

@Austin-Lamb Austin-Lamb left a comment

Choose a reason for hiding this comment

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

🕐

@mdtauk
Copy link
Contributor

mdtauk commented Jun 21, 2019

Is there an alternative "Plus" glyph that is smaller than 16 x 16 within the MDL2 Asset fonts?

UWP Edge's glyph is 0xE710 and is used at a fontsize of 13, and fits in that 32 x 32 button space much more pleasingly.

image

Copy link

@Austin-Lamb Austin-Lamb left a comment

Choose a reason for hiding this comment

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

:shipit:

@teaP teaP merged commit 508db68 into master Jun 21, 2019
@jevansaks jevansaks added the release note PR that we want to call out in the next release summary label Jun 24, 2019
@msft-github-bot
Copy link
Collaborator

🎉Microsoft.UI.Xaml v2.2.190702001-prerelease has been released which incorporates this pull request.:tada:

Handy links:

@teaP teaP deleted the user/teaP/TabViewAdditions branch September 17, 2019 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release note PR that we want to call out in the next release summary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants