fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

fix: TableHeaderCell should not render button when not sortable

Open ling1726 opened this issue 2 years ago • 5 comments
trafficstars

Using the approach with the smallest impact to API and slot rendering.

Previous Behavior

The slot rendered a native button always, but with role="presentation" when it was not interactive.

New Behavior

The slot always renders a div but with ARIA button semantics when it is interactive

Related Issue(s)

Fixes #27633

ling1726 avatar Jun 01 '23 15:06 ling1726

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 1a277b9c4d55bc1b7c65a73383425b1934ec1dad (build)

size-auditor[bot] avatar Jun 01 '23 15:06 size-auditor[bot]

Perf Analysis (@fluentui/react-components)

Scenario Render type Master Ticks PR Ticks Iterations Status
FluentProviderWithTheme virtual-rerender-with-unmount 65 65 10 Possible regression
All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 597 582 5000
Button mount 297 296 5000
Field mount 1036 1034 5000
FluentProvider mount 684 656 5000
FluentProviderWithTheme mount 76 85 10
FluentProviderWithTheme virtual-rerender 68 59 10
FluentProviderWithTheme virtual-rerender-with-unmount 65 65 10 Possible regression
InfoButton mount 9 11 5000
MakeStyles mount 859 831 50000
Persona mount 1674 1595 5000
SpinButton mount 1265 1323 5000

fabricteam avatar Jun 01 '23 15:06 fabricteam

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ffc1fd115febf68480f10526dfc6f64702d8b556:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

codesandbox-ci[bot] avatar Jun 01 '23 15:06 codesandbox-ci[bot]

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-table
DataGrid
156.269 kB
42.766 kB
156.306 kB
42.785 kB
37 B
19 B
react-table
Table (Primitives only)
44.615 kB
12.472 kB
44.652 kB
12.468 kB
37 B
-4 B
react-table
Table as DataGrid
131.923 kB
33.783 kB
131.96 kB
33.791 kB
37 B
8 B
react-table
Table (Selection only)
77.524 kB
19.166 kB
77.561 kB
19.178 kB
37 B
12 B
react-table
Table (Sort only)
76.854 kB
18.976 kB
76.891 kB
18.989 kB
37 B
13 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
65.162 kB
17.952 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
210.365 kB
58.697 kB
react-components
react-components: FluentProvider & webLightTheme
36.395 kB
11.996 kB
react-portal-compat
PortalCompatProvider
6.473 kB
2.196 kB
🤖 This report was generated against 1a277b9c4d55bc1b7c65a73383425b1934ec1dad

fabricteam avatar Jun 01 '23 15:06 fabricteam

🕵 fluentuiv9 No visual regressions between this PR and main

fabricteam avatar Jun 01 '23 17:06 fabricteam

:tada:@fluentui/[email protected] has been released which incorporates this pull request.:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 20 '23 07:06 msft-fluent-ui-bot

:tada:@fluentui/[email protected] has been released which incorporates this pull request.:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 20 '23 07:06 msft-fluent-ui-bot

:tada:@fluentui/[email protected] has been released which incorporates this pull request.:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 21 '23 07:06 msft-fluent-ui-bot

:tada:@fluentui/[email protected] has been released which incorporates this pull request.:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 21 '23 07:06 msft-fluent-ui-bot