Bugfix: Honor sx on draft Dialog.Header
#4205
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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