Add tooltip text for Add button in Developer Balance template sample#32313
Add tooltip text for Add button in Developer Balance template sample#32313rmarinho merged 2 commits intodotnet:mainfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds tooltip support to AddButton controls across three XAML pages in the MAUI mobile template. The changes improve user experience by providing descriptive tooltips when users hover over the floating add buttons.
- Adds
ToolTipProperties.Textattributes to allAddButtoncontrols - Ensures consistent tooltip text that matches the button's semantic description
- Enhances desktop usability where tooltips are more relevant
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| ProjectListPage.xaml | Added "Add project" tooltip to the AddButton control |
| ProjectDetailPage.xaml | Added "Add task" tooltip to the AddButton control |
| MainPage.xaml | Added "Add task" tooltip to the AddButton control |
| Command="{Binding AddProjectCommand}" | ||
| ToolTipProperties.Text="Add project" /> |
There was a problem hiding this comment.
Inconsistent indentation: The Command attribute should align with the opening tag. The indentation should match the pattern used in the other files where attributes align properly.
| Command="{Binding AddProjectCommand}" | |
| ToolTipProperties.Text="Add project" /> | |
| Command="{Binding AddProjectCommand}" | |
| ToolTipProperties.Text="Add project" /> |
| <controls:AddButton | ||
| Command="{Binding AddProjectCommand}" /> | ||
| Command="{Binding AddProjectCommand}" | ||
| ToolTipProperties.Text="Add project" /> |
There was a problem hiding this comment.
Missing SemanticProperties.Description attribute. The AddButton control in ProjectListPage.xaml lacks a semantic description for screen readers, unlike the implementations in ProjectDetailPage.xaml and MainPage.xaml which both include SemanticProperties.Description=\"Add task\". Add SemanticProperties.Description=\"Add project\" for consistency and accessibility.
| ToolTipProperties.Text="Add project" /> | |
| ToolTipProperties.Text="Add project" | |
| SemanticProperties.Description="Add project" /> |
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Issue Details
No tooltip was shown for the Add Button in the Developer Balance sample.
Description of Change
Added tooltip text for the Add buttons in the Project and Tasks sections.
MAUI-samples PR: dotnet/maui-samples#703
Screenshots
MacTooltip.mov
WindowsTooltip.mp4