Skip to content

Conversation

@marcosmoura
Copy link
Contributor

Previous Behavior

To enable narration of the correct element when a card is selectable, we would create a dynamic id for the CardHeader element and synchronise it with the internal checkbox aria-describedby attribute.

New Behavior

We now infer the value from the children element from the CardHeader header property (if any). In case no element is found, it'll fallback to the previous behaviour. This will allow to a more precise target for the element we use to enable narration.

@fabricteam
Copy link
Collaborator

fabricteam commented Jun 20, 2023

Perf Analysis (@fluentui/react-components)

Scenario Render type Master Ticks PR Ticks Iterations Status
FluentProviderWithTheme mount 83 81 10 Possible regression
InfoButton mount 12 16 5000 Possible regression
All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 594 599 5000
Button mount 316 298 5000
Field mount 1066 1055 5000
FluentProvider mount 663 636 5000
FluentProviderWithTheme mount 83 81 10 Possible regression
FluentProviderWithTheme virtual-rerender 67 74 10
FluentProviderWithTheme virtual-rerender-with-unmount 72 76 10
InfoButton mount 12 16 5000 Possible regression
MakeStyles mount 853 838 50000
Persona mount 1636 1631 5000
SpinButton mount 1334 1312 5000

@size-auditor
Copy link

size-auditor bot commented Jun 20, 2023

Asset size changes

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

Baseline commit: e89fe80d9b45023929d2e072b311eacd4d7f7a30 (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Jun 20, 2023

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-card
Card - All
88.829 kB
25.141 kB
89.11 kB
25.236 kB
281 B
95 B
react-card
CardHeader
11.125 kB
4.596 kB
11.402 kB
4.683 kB
277 B
87 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-card
Card
83.764 kB
23.685 kB
react-card
CardFooter
9.229 kB
3.9 kB
react-card
CardPreview
10.034 kB
4.248 kB
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 e89fe80d9b45023929d2e072b311eacd4d7f7a30

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 20, 2023

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 89107e2:

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

@fabricteam
Copy link
Collaborator

fabricteam commented Jun 20, 2023

🕵 fluentuiv9 No visual regressions between this PR and main

@Hotell Hotell changed the title fix: infer a11y id from immediate header element fix(react-card): infer a11y id from immediate header element Jun 21, 2023
Co-authored-by: Martin Hochel <[email protected]>
@marcosmoura marcosmoura enabled auto-merge (squash) June 21, 2023 16:12
@marcosmoura marcosmoura merged commit 1a34d5c into microsoft:master Jun 21, 2023
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Jun 22, 2023
* master: (95 commits)
  docs(react-drawer): improve drawer stories examples (microsoft#28283)
  bugfix: adds grid-template-columns to DialogBody styles to ensure grid template layout (microsoft#28272)
  Doc: Tree Infinite Scrolling (microsoft#28197)
  fix(react-card): infer a11y id from immediate header element (microsoft#28266)
  Fixed bugs and added more stories to the Breadcrumb (microsoft#28267)
  refactor: Keep vanillajs code only where needed (microsoft#28278)
  fix: correcting focus behavior of react-search (microsoft#28241)
  Tooltip : updated tooltip styles (microsoft#28264)
  applying package updates
  feat(react-tags): add styles for size (microsoft#28229)
  docs(react-dialog): update DialogTriggerOutsideDialog to include focus behavior (microsoft#28176)
  bugfix: Ensures dialog actions stretches on breakpoints (microsoft#28258)
  applying package updates
  fix: TableHeaderCell should not render button when not sortable (microsoft#28097)
  fix(react-file-type-icons): Map mhtml extension to html icon (microsoft#28112)
  Fix overlapping axis labels on smaller viewports (microsoft#28239)
  useArrowNavigationGroup grid-linear axis (microsoft#28253)
  applying package updates
  fix: Alert example missing aria-label for icon (microsoft#28234)
  Overflow divider fix (microsoft#28011)
  ...
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Jun 22, 2023
* master:
  docs(react-drawer): best practices (microsoft#28040)
  docs(react-drawer): add missing documentation for Drawer stories (microsoft#28284)
  docs(react-drawer): improve type descriptions and fix TS circular references (microsoft#28282)
  docs(react-drawer): improve drawer stories examples (microsoft#28283)
  bugfix: adds grid-template-columns to DialogBody styles to ensure grid template layout (microsoft#28272)
  Doc: Tree Infinite Scrolling (microsoft#28197)
  fix(react-card): infer a11y id from immediate header element (microsoft#28266)
  Fixed bugs and added more stories to the Breadcrumb (microsoft#28267)
  refactor: Keep vanillajs code only where needed (microsoft#28278)
  fix: correcting focus behavior of react-search (microsoft#28241)
  Tooltip : updated tooltip styles (microsoft#28264)
@msft-fluent-ui-bot
Copy link
Collaborator

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

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

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

Handy links:

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants