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

Update ToC styles for Developer redesign #499

Merged
merged 4 commits into from
Nov 16, 2023

Conversation

adamwoodnz
Copy link
Contributor

@adamwoodnz adamwoodnz commented Nov 14, 2023

See #491

Updates styles to match the Developer article designs.

Largely follows the styles added to the Developer Chapter List block in WordPress/wporg-developer#353

The ToC should be collapsed by default on mobile and tablet (screens < 1200px wide), and expanded on larger screens where it can sit alongside the content. No change to fixed/scrolling sidebar behaviour.

NOTE: Does not make changes to scrolling behaviour, including visibility of 'Back to top' at top of page, and styling of the active/closest ToC title.

Screenshots

Desktop

localhost_8888_block-editor_how-to-guides_data-basics_2-building-a-list-of-pages_(Desktop)

Tablet

Landscape Portrait Expanded
localhost_8888_block-editor_how-to-guides_data-basics_2-building-a-list-of-pages_(iPad) (3) localhost_8888_block-editor_how-to-guides_data-basics_2-building-a-list-of-pages_(iPad) (4) localhost_8888_block-editor_how-to-guides_data-basics_2-building-a-list-of-pages_(iPad) (5)

Mobile

Collapsed Expanded
localhost_8888_block-editor_how-to-guides_data-basics_2-building-a-list-of-pages_(Samsung Galaxy S20 Ultra) (3) localhost_8888_block-editor_how-to-guides_data-basics_2-building-a-list-of-pages_(Samsung Galaxy S20 Ultra) (2)

Testing

This should be tested with both Developer and Documentation sites.

Ensure your mu-plugins is on this branch and styles are built.

Check at different screen sizes; behaviour is different at < 768px, between 768px and 1199px, and >= 1200px.

Check both state on page load, and on screen orientation change.

@adamwoodnz adamwoodnz linked an issue Nov 14, 2023 that may be closed by this pull request
@adamwoodnz adamwoodnz added the Redesign Related to the wordpress.org redesign project label Nov 14, 2023
@adamwoodnz adamwoodnz added this to the MVP milestone Nov 14, 2023
@adamwoodnz adamwoodnz self-assigned this Nov 14, 2023
@adamwoodnz adamwoodnz changed the title Update ToC styles to match Developer designs Update ToC styles for Developer redesign Nov 14, 2023
@adamwoodnz adamwoodnz marked this pull request as ready for review November 14, 2023 23:34
@adamwoodnz adamwoodnz merged commit c0b9e9e into trunk Nov 16, 2023
2 checks passed
@adamwoodnz adamwoodnz deleted the update/491-new-styles-in-toc-component branch November 16, 2023 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Redesign Related to the wordpress.org redesign project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant