Skip to content
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

Showcase: Reposition the Main component (#23768) #24037

Closed
wants to merge 2 commits into from

Conversation

sixhours
Copy link
Contributor

Main needs to wrap header divs or they'll persist upon exiting the section.

/cc @mendezcode @mapk

…re to match markup for other sections of Calypso. See #23768
@matticbot
Copy link
Contributor

@sixhours
Copy link
Contributor Author

CircleCI is failing on the Main wrapper's class name:

className should follow CSS namespace guidelines (expected themes__ prefix) wpcalypso/jsx-classname-namespace

I'm using the original class name (themes) for consistency, but maybe it should be changed to match the new standards.

@mapk
Copy link
Contributor

mapk commented Apr 10, 2018

I just tested it with Chrome inspector in responsive mode and it worked great.

screen-switch

As for the test failure, I'm not sure that's necessary. What you have appears to align with some of the other selectors in the markup.

Sharing
sharing-selectors

Comments
comments-selectors

Themes
themes-selectors

@folletto or @seear, do either of you agree with this assessment? Should we disregard the failure notification and just merge?

@sixhours
Copy link
Contributor Author

Just noticed a bug...the header section title has disappeared when the patch is active. See the original, sans patch (under "This Site Title"):

screen shot 2018-04-10 at 12 23 06 pm

That should probably be fixed before we merge. Looking into it now...

@folletto
Copy link
Contributor

That's a part of the codebase I'm not experienced with, so I don't feel I can give you a reliable answer. Sorry!

@sixhours sixhours added the [Feature Group] Appearance & Themes Features related to the appearance of sites. label Apr 10, 2018
@sixhours sixhours changed the title Reposition the Main component in the Theme Showcase (#23768) Theme Showcase: Reposition the Main component (#23768) Apr 10, 2018
@sixhours sixhours changed the title Theme Showcase: Reposition the Main component (#23768) Showcase: Reposition the Main component (#23768) Apr 10, 2018
@sixhours
Copy link
Contributor Author

The missing section title is due to the absence of the DocumentHead component within the moved Main components in the individual files.

I haven't figured out how to bring that over, since it's dependent on a number of props and state pieces that need to be untangled from the original theme showcase file.

@seear
Copy link
Contributor

seear commented Apr 11, 2018

Main needs to wrap header divs or they'll persist upon exiting the section.

I'm not quite certain about the premise of this PR. New content is rendered into #primary and nothing below that should persist. Is there a test case to reproduce the problem being fixed here?

@sixhours
Copy link
Contributor Author

@seear Yes! Check out #23768 for the original report.

@seear
Copy link
Contributor

seear commented Apr 11, 2018

Check out #23768 for the original report.

Thanks @sixhours! I'm digging in to see what has caused this...

@ryelle
Copy link
Member

ryelle commented Apr 11, 2018

I'm not sure if we have a better way of handling this, but you can pass the className in using a variable, and that bypasses that check.

const className = 'themes';
<Main className={ className }…

the header section title has disappeared when the patch is active.

I'm actually seeing this on master, too - if you go to any section, hit the chevron to go to the menu, then click the same selection, the title disappears. I tried to fix something similar in #22501, but I thought we didn't need it anymore. I can take another look though, since it seems to be a continuing issue 🙂

@sixhours
Copy link
Contributor Author

@ryelle Thank you for looking into this! It sounds like we're OK to continue testing this patch, with the idea we'll fix the section title bug in a separate PR?

@Copons Copons added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Apr 17, 2018
@alisterscott alisterscott removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jul 24, 2018
@alisterscott alisterscott added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jul 24, 2018
@alisterscott alisterscott requested a review from a team July 24, 2018 04:02
@alisterscott
Copy link
Contributor

Are we still keen to progress this PR and get it merged?

@alisterscott
Copy link
Contributor

Closing due to inactivity - please reopen if necessary

@alisterscott alisterscott deleted the fix/theme-showcase-main-markup branch September 12, 2018 07:01
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Sep 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature Group] Appearance & Themes Features related to the appearance of sites.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants