Skip to content

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
<!-- /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

3 participants