Skip to content

DetailsList: selection column header in single selection mode#7842

Merged
leddie24 merged 15 commits into
microsoft:masterfrom
natalieethell:detailsListSelectionColumnHeader
Feb 4, 2019
Merged

DetailsList: selection column header in single selection mode#7842
leddie24 merged 15 commits into
microsoft:masterfrom
natalieethell:detailsListSelectionColumnHeader

Conversation

@natalieethell

@natalieethell natalieethell commented Jan 30, 2019

Copy link
Copy Markdown
Contributor

Pull request checklist

Description of changes

These changes render a basic, non-focusable column header for the checkboxes for the DetailsList in single selection mode. I spoke to Ben about the "non-focusable" aspect.

detailslistsingleselectioncheckboxcolumn

Additionally, the correct column header is now read out by the screen reader for each cell when navigating through the cells in scan mode. They were one off before. The before and after below are when navigating through the DetailsList "Advanced"/"Variable Row Heights" example.

Navigating to a thumbnail cell before:
non-selected, read-only, Column Header key

Navigating to a thumbnail cell after:
non-selected, read-only, Column Header thumbnail

Now you should also be able to navigate to the checkboxes' column header in scan mode.

@betrue-final-final could you look over the new snapshots? - Edit: Thanks!

Focus areas to test

(optional)

Microsoft Reviewers: Open in CodeFlow

this._onRenderColumnHeaderTooltip
)}
</div>,
ariaLabelForSelectAllCheckbox && !this.props.onRenderColumnHeaderTooltip ? (

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

All I did here was render ariaLabelForSelectionColumn in the label when isCheckboxHidden is true, since it becomes a header instead of a select all checkbox.

@size-auditor

size-auditor Bot commented Jan 30, 2019

Copy link
Copy Markdown
Bundle test Size (minified) Diff from master
DetailsList 254.854 kB ExceedsBaseline     230 bytes
ShimmeredDetailsList 269.744 kB ExceedsBaseline     230 bytes

ExceedsTolerance  Exceeds Tolerance     ExceedsBaseline  Exceeds Baseline     BelowBaseline  Below Baseline     1 kB = 1000 bytes

@KevinTCoughlin KevinTCoughlin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🕐 will sync with @natalieethell re: approach.

Comment thread packages/office-ui-fabric-react/src/components/DetailsList/DetailsHeader.base.tsx Outdated
Comment thread packages/office-ui-fabric-react/src/components/DetailsList/DetailsHeader.base.tsx Outdated
KevinTCoughlin and others added 4 commits February 1, 2019 16:15
…ailsHeader.base.tsx

Co-Authored-By: natalieethell <naethell@microsoft.com>
…ailsHeader.base.tsx

Co-Authored-By: natalieethell <naethell@microsoft.com>
@leddie24
leddie24 merged commit 74cfba9 into microsoft:master Feb 4, 2019
@msft-github-bot

Copy link
Copy Markdown
Contributor

🎉office-ui-fabric-react@v6.134.0 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DetailsList: Accessibility - Narrator doesn't read checkmark column header in single-select mode in Edge

4 participants