Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 06771fc

Browse files
committed
[NuGet] Fix column header now read for first column in Consolidate tab
Combine project name and check box in Consolidate tab. This fixes the problem where the check box has a column with no name. Now the check box and the project name are in the same column so Voice Over reads the column header name, the project name and the checkbox state which makes it easier to understand what the list view is displaying. Fixes VSTS #1021702 - Accessibility: NuGet Packages: Column Header name is not present for the first column.
1 parent 1b7ba51 commit 06771fc

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,16 +249,15 @@ void InitializeProjectsListView ()
249249
projectCheckBoxCellView.ActiveField = projectCheckedField;
250250
projectCheckBoxCellView.Editable = true;
251251
projectCheckBoxCellView.Toggled += ProjectCheckBoxCellViewToggled;
252-
var column = new ListViewColumn (string.Empty, projectCheckBoxCellView);
253-
projectsListView.Columns.Add (column);
254-
255-
// Project column.
256-
var textCellView = new TextCellView ();
257-
textCellView.TextField = projectNameField;
258-
column = new ListViewColumn (GettextCatalog.GetString ("Project"), textCellView) {
252+
var column = new ListViewColumn (GettextCatalog.GetString ("Project"), projectCheckBoxCellView) {
259253
CanResize = true,
260254
SortDataField = projectNameField
261255
};
256+
257+
// Project name.
258+
var textCellView = new TextCellView ();
259+
textCellView.TextField = projectNameField;
260+
column.Views.Add (textCellView);
262261
projectsListView.Columns.Add (column);
263262

264263
// Package version column

0 commit comments

Comments
 (0)