-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(web-components): refactor fluent-dialog and add new fluent-dialog-body component #31512
chore(web-components): refactor fluent-dialog and add new fluent-dialog-body component #31512
Conversation
📊 Bundle size report✅ No changes found |
change/@fluentui-web-components-be24e8ac-7ef6-4b5c-b242-0636137aaec1.json
Show resolved
Hide resolved
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a great improvement - a couple questions and comments to see if we can trim/simplify/align in a few places
packages/web-components/src/dialog-body/dialog-body.template.ts
Outdated
Show resolved
Hide resolved
packages/web-components/src/dialog-body/dialog-body.template.ts
Outdated
Show resolved
Hide resolved
packages/web-components/src/dialog-body/dialog-body.template.ts
Outdated
Show resolved
Hide resolved
packages/web-components/src/dialog-body/dialog-body.template.ts
Outdated
Show resolved
Hide resolved
packages/web-components/src/dialog-body/dialog-body.definition.ts
Outdated
Show resolved
Hide resolved
2d11400
to
f20fe20
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reduction in class methods is incredible to see here, great work!
I'd love to see some more Playwright tests, as well as some duplication cleanup in the story files if that's possible.
packages/web-components/src/dialog-body/dialog-body.template.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Jane Chu <[email protected]>
Co-authored-by: Jane Chu <[email protected]>
Co-authored-by: John Kreitlow <[email protected]>
Co-authored-by: John Kreitlow <[email protected]>
c32edae
to
d08c0b1
Compare
…og-body component (microsoft#31512) Co-authored-by: Jane Chu <[email protected]> Co-authored-by: John Kreitlow <[email protected]>
Previous Behavior
<fluent-dialog>
had a lot of duplicate functionality with nativeHTMLDialogElement
New Behavior
open
attribute functionalitymodalType
attribute totype
<fluent-dialog-body>
element to handle default content behavior<fluent-dialog>
Related Issue(s)