Repository navigation
Starter Page Templates: Update the selector look and feel - #38065
Conversation
|
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
|
Is this ready for review @Copons ? |
|
@apeatling almost! |
noahtallen
left a comment
There was a problem hiding this comment.
-
There are some tests on the SPT modal (wow, there are some tests!) that need fixed: https://circleci.com/gh/Automattic/wp-calypso/540276?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
-
Additionally, I was previously able to select a layout on mobile, but this screen does not appear now:
- I'm also struggling to
npm iand switch between this branch and master (which seems to be giving me a php fatal error because some file it expects is missing). Maybe could use a rebase?
There was a problem hiding this comment.
Yeah, TIL jQuery events are not compatible with vanilla (the opposite is true though: of course jQuery can listen to vanilla-defined events).
And indeed wp-admin triggers the sidebar event through jQuery, so there's no way around it.
I think this is a neat enough solution though.
We aren't importing jQuery so we don't bloat the build, and just rely on wp-admin that puts jQuery into global.
|
On a more positive note, other than the above, this is testing very nicely to me! It definitely feels better |
… the preview on sidebar toggle.
187caba to
698b351
Compare
@noahtallen good catch, I really had no idea! 🤣
Can't repro this, it works fine here...
Once rebased, indeed I wasn't able to |
|
Admittedly, I don't think I've tried the Change Layout flow straight on mobile. I wonder if it's related to what I outlined in the known issues in the PR description:
I kinda disregarded it as a minor itch (in my tests, the modal disappears on resize to mobile, but then it can be reopened just fine, even in mobile size), but it seems there's something more going on here. |
Ahh yeah, I did notice that as well and I think it happened previously too. But I am able to at least open it back up on mobile without this change |
|
@noahtallen Still can't repro This above is the Change Layout flow, loaded from scratch on mobile breakpoint. |
|
I'm testing on wpcom and didn't test locally -- maybe that's the difference? (Which makes no sense to me) |
|
I still can't repro in WPCOM (Gutenframe) as well. 😢 Also I'm kinda inclined to ship this anyway, and possibly tackle the mobile issue before the next plugin sync. |
As long as you're comfortable with the change being production-ready, sounds good! |
I've tested this both locally and on Dotcom sandbox and it worked fine for me. 🤔 |



Changes proposed in this Pull Request
This is a replacement of #37744.
Video
https://cloudup.com/cjjFwMPrG2o
Known issues
Testing instructions