Uh oh!
There was an error while loading. Please reload this page.
Bugfix: Honor sx on draft Dialog.Header - #4205
Conversation
🦋 Changeset detectedLatest commit: 4b9648a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
broccolinisoup
left a comment
There was a problem hiding this comment.
Hello @pablonete 👋🏻 Thanks so much for raising this PR. It looks good to me! 👍🏻
We appreciate the feedback as well. I'll share it with the team, it is a super reasonable point 🙏🏻
siddharthkp
commented
Feb 6, 2024
@pablonete That's very good feedback, thanks! re: |
sxwas supported but it wasn't applied on top of standardHeaderstyles.This does nothing because
sxis listed on the props but it's ignored on the component. It's the only component missing it (seeTitle,Subtitle,Body, andFooter).Our use case is dropping the section borders in the dialog for a design where the dialog content has its own border, so we don't want separators on Header or Footer.
Based on this, I'm also leaving the feedback that removing section borders requires repeating the header/footer template, which is risky (we had to duplicate even the focusZone in the Footer) as it will get out of sync of future improvements in the dialog. Quickly thinking, I'd suggest something like
headerSxorfooterSxin theDialogto prevent this duplication: we're usingrenderHeaderonly to modify the style, not to fully replace the template. Any feedback here is welcome.Changelog
No API changes.
New
Changed
Removed
Rollout strategy
Testing & Reviewing
When using
renderHeader, we couldn't useDialog.Headerto change the style, so we had to use aBoxand copy & change the styles from theDialog.Headerdefinition.Merge checklist