Skip to content

Conversation

@bsunderhus
Copy link
Contributor

@bsunderhus bsunderhus commented Sep 27, 2022

Current Behavior

After many discussions, the implementation of native <dialog> as a valid element to be used by DialogSurface component presented as desirable.

New Behavior

The PR #24525 had valid points presented by @layershifter and @Hotell about our matrix support and Safari issues with native <dialog> element. After some investigations, the support for <dialog> native element as default element for DialogSurface has proven to be a challenge (mostly due to Safari's lack of support for HTMLDialogElement modal methods and also ::backdrop pseudoelement).

With that in mind, this PR reverts DialogSurface to only support div. Having in mind that perhaps in future iterations whenever we have a better browser support this might be added again.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 27, 2022

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 3be490f:

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

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 27, 2022

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1242 1168 5000
Button mount 889 841 5000
FluentProvider mount 1550 1503 5000
FluentProviderWithTheme mount 615 640 10
FluentProviderWithTheme virtual-rerender 594 592 10
FluentProviderWithTheme virtual-rerender-with-unmount 555 633 10
MakeStyles mount 1800 1730 50000
SpinButton mount 2459 2487 5000

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 27, 2022

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-dialog
Dialog (including children components)
82.878 kB
24.582 kB
82.438 kB
24.444 kB
-440 B
-138 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
189.156 kB
52.385 kB
react-components
react-components: FluentProvider & webLightTheme
33.4 kB
11.008 kB
react-portal-compat
PortalCompatProvider
5.857 kB
1.978 kB
🤖 This report was generated against 36287e1ecdb6a5e4d9396ef05965890053de2c7b

@size-auditor
Copy link

size-auditor bot commented Sep 27, 2022

Asset size changes

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

Baseline commit: 5eb849d01fd82567ba6ce6d8e9281685d069432e (build)

@bsunderhus bsunderhus marked this pull request as ready for review September 28, 2022 13:36
@bsunderhus bsunderhus requested a review from a team as a code owner September 28, 2022 13:36
@bsunderhus bsunderhus changed the title feat(react-dialog): as="div" by default feat(react-dialog): removes DialogSurface native dialog support Sep 30, 2022
@bsunderhus bsunderhus changed the title feat(react-dialog): removes DialogSurface native dialog support feat(react-dialog): removes DialogSurface native dialog support Sep 30, 2022
@bsunderhus bsunderhus force-pushed the react-dialog/as-div-by-default branch from e088aae to 3be490f Compare September 30, 2022 13:09
@bsunderhus bsunderhus merged commit da8a1d4 into microsoft:master Sep 30, 2022
@bsunderhus bsunderhus deleted the react-dialog/as-div-by-default branch September 30, 2022 15:18
GeoffCoxMSFT pushed a commit to GeoffCoxMSFT/fluentui that referenced this pull request Oct 3, 2022
…crosoft#24979)

* feat(react-dialog): `as="div"` by default

* feat: completely remove native dialog support
NotWoods pushed a commit to NotWoods/fluentui that referenced this pull request Nov 18, 2022
…crosoft#24979)

* feat(react-dialog): `as="div"` by default

* feat: completely remove native dialog support
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.

3 participants