Skip to content

Fix extra space in class list page template#3743

Merged
precious-onyenaucheya-ons merged 9 commits intomainfrom
fix-extra-space-in-class-list-page-template
Oct 13, 2025
Merged

Fix extra space in class list page template#3743
precious-onyenaucheya-ons merged 9 commits intomainfrom
fix-extra-space-in-class-list-page-template

Conversation

@rmccar
Copy link
Copy Markdown
Contributor

@rmccar rmccar commented Oct 2, 2025

What is the context of this PR?

Fixes: #3744
ONSDESYS-711

This PR fixes a minor issue where there is an extra space rendered in the page template if the pageColClasses and mainClasses are not set.

This also addresses an issue with a variable mainClasses is named incorrectly which means that mainColClasses cannot be set

How to review this PR

  • Create examples of pages that use pageConfig with and without the classes set and check the HTML for spaces in the class list.
  • Set pageConfig.mainColClasses sets the class as expected
  • Then compare this with the main branch

Checklist

This needs to be completed by the person raising the PR.

  • I have selected the correct Assignee
  • I have linked the correct Issue

@netlify
Copy link
Copy Markdown

netlify bot commented Oct 2, 2025

Deploy Preview for ons-design-system-preview ready!

Name Link
🔨 Latest commit 2969f7d
🔍 Latest deploy log https://app.netlify.com/projects/ons-design-system-preview/deploys/68e8f3b76c403c000806703f
😎 Deploy Preview https://deploy-preview-3743--ons-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@rmccar rmccar self-assigned this Oct 2, 2025
@rmccar rmccar added the Bug Something isn't working label Oct 2, 2025
rmccar added 2 commits October 2, 2025 13:47
…com:ONSdigital/design-system into fix-extra-space-in-class-list-page-template
@rmccar rmccar marked this pull request as ready for review October 2, 2025 12:47
@rmccar rmccar requested a review from a team as a code owner October 2, 2025 12:47
@rmccar rmccar changed the title fix extra space in class list page template Fix extra space in class list page template Oct 2, 2025
@precious-onyenaucheya-ons precious-onyenaucheya-ons merged commit 25c87a3 into main Oct 13, 2025
14 checks passed
@precious-onyenaucheya-ons precious-onyenaucheya-ons deleted the fix-extra-space-in-class-list-page-template branch October 13, 2025 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extra spacing in page layout class list

3 participants