OnePaneDialog:With Style

Build 7895 on WB-2086-v2
Reviewing disabled
View latest build
BaselineBuild 7389 on wb-2011-labeled-field
View Storybook
LatestBuild 7895 on WB-2086-v2
View Storybook
Baseline History
Build 78957340d1c
Current build. There are unaccepted changes, so build 7389 is still the baseline.
Build 73890669713 current baseline
Auto-accepted
Build 722654dc53f
Accepted by Bea Esguerra.
Build 641515d3c2f
Accepted by Bea Esguerra.
Commenting is disabled because there's a newer build on this branch. Go to Build 7925 now
Pinned
Bea Esguerra
I don't see any code changes to this story in the PR! Was this expected to change?
Marcy Sutton-Todd
Marcy Sutton-Todd
6mo ago on build 7885

Good question! I wonder if it's related to the removal of MediaLayout. The styles for small became the default. I'll play with it and see if it changes things!

Marcy Sutton-Todd
Marcy Sutton-Todd
6mo ago on build 7899

I actually wonder if this was a prior issue with MediaLayout and specificity. When a style is passed in through props, should it override a media query that matches? In this case, the maxWidth style in the story is overridden by the midOrLarger media query. The old MediaLayout mdOrLarger may not have been applied in the same way as Aphrodite styles, and it was overridden at the snapshot viewport size. Maybe the custom style should be something more straightforward, or the story could be set to a smaller viewport size? I confirmed the maxWidth style in the story is being applied at smaller viewport sizes.


Related to this, MediaLayout mdOrLarger had a different value than our media query breakpoint for mdOrLarger . So I added a breakpoint to match the old value so we can have better backwards compatibility (and move some TODOs for 767px breakpoints out of comments and into tokens).

Bea Esguerra
Bea Esguerra
6mo ago on build 7911

Approving the snapshot for now to move things along! In the PR thread, I mentioned it could be helpful to update the WithStyle example so we can show how consumers could override the max width!