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

Remove SOTW banner from homepage #207

Merged
merged 1 commit into from
Feb 22, 2023

Conversation

adamwoodnz
Copy link
Contributor

@adamwoodnz adamwoodnz commented Feb 21, 2023

Closes #206

Only the banner has been removed but there are quite a few markup changes, probably as a result of Gutenberg changes, eg. H2s need to have margin-top: 0, anchor prop, etc.

Including full screenshots for easy comparison.

Note that the language suggestion banner is missing locally because there is a CORS failure when requesting https://wordpress.org/lang-guess/lang-guess-ajax.php

Screenshots

Desktop

Before After
wordpress org_(Desktop) localhost_8888_(Desktop) (1)

Tablet

Before After
wordpress org_(iPad) localhost_8888_(iPad) (1)

Mobile

Before After
wordpress org_(Samsung Galaxy S20 Ultra) localhost_8888_(Samsung Galaxy S20 Ultra) (1)

How to test the changes in this Pull Request:

  1. Load the homepage
  2. Ensure all regular sections are included
  3. Ensure banner is removed
  4. Check random heading block is working
  5. Check latest new posts are listed

@adamwoodnz adamwoodnz added the [Component] Content Bugs or issues related to the page content label Feb 21, 2023
@adamwoodnz adamwoodnz self-assigned this Feb 21, 2023
@@ -54,7 +35,7 @@
<div class="wp-block-wporg-language-suggest alignfull"></div>
<!-- /wp:wporg/language-suggest -->

<!-- wp:cover {"url":"https://wordpress.org/files/2022/08/Editor.webp","id":11558,"dimRatio":0,"minHeight":670,"minHeightUnit":"px","align":"full","style":{"spacing":{"padding":{"top":"5rem","right":"var:preset|spacing|edge-space","bottom":"5rem","left":"var:preset|spacing|edge-space"}}}} -->
<!-- wp:cover {"url":"https://wordpress.org/files/2022/08/Editor.webp","id":11558,"dimRatio":0,"minHeight":670,"minHeightUnit":"px","align":"full","anchor":"editor","style":{"spacing":{"padding":{"top":"5rem","right":"var:preset|spacing|edge-space","bottom":"5rem","left":"var:preset|spacing|edge-space"}}}} -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you mention anchor props in the description, I'm assuming that anchors need to be present in the block attributes now?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely this change: WordPress/gutenberg#44771?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@StevenDufresne StevenDufresne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is working as expected.

I have double-checked and the anchor changes are necessary. I don't know the source of change for the margins but explicitly adding them should help future proof.

@adamwoodnz adamwoodnz merged commit def2764 into trunk Feb 22, 2023
@adamwoodnz adamwoodnz deleted the update/206-home-remove-sotw-banner branch February 22, 2023 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Content Bugs or issues related to the page content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove SOTW 2022 banner from home page
2 participants