Skip to content

Conversation

@smhigley
Copy link
Contributor

@smhigley smhigley commented Apr 5, 2023

Previous Behavior

Our v9 DialogTitle defaults to generic text, even though it is displayed as a heading.

New Behavior

By default, it has role=heading aria-level=2. I didn't want to change the default tag, though if we go for a major version change in the future, defaulting to as: h2 would be better.

@smhigley smhigley self-assigned this Apr 5, 2023
@smhigley smhigley requested a review from a team as a code owner April 5, 2023 21:05
@github-actions github-actions bot added this to the April Project Cycle Q2 2023 milestone Apr 5, 2023
@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 5, 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 28ab635:

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

@fabricteam
Copy link
Collaborator

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 689 690 5000
Button mount 375 373 5000
Field mount 1257 1268 5000
FluentProvider mount 874 855 5000
FluentProviderWithTheme mount 112 116 10
FluentProviderWithTheme virtual-rerender 87 97 10
FluentProviderWithTheme virtual-rerender-with-unmount 101 106 10
InfoButton mount 21 18 5000
MakeStyles mount 1111 1117 50000
Persona mount 1979 1912 5000
SpinButton mount 1528 1546 5000

@size-auditor
Copy link

size-auditor bot commented Apr 5, 2023

Asset size changes

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

Baseline commit: af3c827937dcb0a32f52ef8a93b91c1276956b56 (build)

@fabricteam
Copy link
Collaborator

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-dialog
Dialog (including children components)
93.388 kB
27.408 kB
93.42 kB
27.425 kB
32 B
17 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
67.994 kB
18.395 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
207.512 kB
57.555 kB
react-components
react-components: FluentProvider & webLightTheme
38.819 kB
12.351 kB
react-portal-compat
PortalCompatProvider
6.446 kB
2.185 kB
🤖 This report was generated against 1071a2a382741b1328228b336c2a94de388a3963

@fabricteam
Copy link
Collaborator

🕵 fluentuiv9 No visual regressions between this PR and main

@ling1726 ling1726 requested a review from bsunderhus April 6, 2023 07:26
@bsunderhus
Copy link
Contributor

We've been discussing the possibility of using h2 as default root value. And it's a consensus that it makes no sense to keep this as div, so here's the PR to properly change the default value #27555

@george-cz
Copy link
Contributor

@smhigley I'm closing this one, since its been fixed by Bernardo's PR.

@george-cz george-cz closed this Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants