Skip to content

WS-2471-Fix whitespace above PV curation heading#13895

Open
Nabeel1276 wants to merge 3 commits intolatestfrom
WS-2471-fix-whitespace-above-pv-curation-heading
Open

WS-2471-Fix whitespace above PV curation heading#13895
Nabeel1276 wants to merge 3 commits intolatestfrom
WS-2471-fix-whitespace-above-pv-curation-heading

Conversation

@Nabeel1276
Copy link
Copy Markdown
Contributor

@Nabeel1276 Nabeel1276 commented Apr 9, 2026

Resolves JIRA: https://bbc.atlassian.net/browse/WS-2471

Summary

A very high-level summary of easily-reproducible changes that can be understood by non-devs, and why these changes where made.

Code changes

  • List key code changes that have been made.

Testing

  1. List the steps required to test this PR.

Useful Links

Copilot AI review requested due to automatic review settings April 9, 2026 11:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the ContinueReadingButton spacing to fix the whitespace above the PV curation heading, tuning margins across responsive breakpoints.

Changes:

  • Replaces negative bottom margin with positive bottom margin on the continue reading button.
  • Adds a mq.GROUP_3_MIN_WIDTH override to use a different bottom margin on larger viewports.

Comment on lines 14 to +42
@@ -33,10 +33,14 @@ export default {
},

[mq.GROUP_1_MAX_WIDTH]: {
margin: `0 ${spacings.FULL}rem -${spacings.HALF}rem ${spacings.FULL}rem`,
margin: `0 ${spacings.FULL}rem ${pixelsToRem(36)}rem ${spacings.FULL}rem`,
width: `calc(100% - ${spacings.DOUBLE}rem)`,
},

[mq.GROUP_3_MIN_WIDTH]: {
margin: `0 ${spacings.DOUBLE}rem ${pixelsToRem(20)}rem ${spacings.DOUBLE}rem`,
},
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

The new bottom margins use hard-coded pixel values (36px/20px via pixelsToRem) that don’t map to the theme spacing scale (which is based on 8px steps). To keep spacing consistent and self-documenting, consider using existing spacings.* tokens where possible, or introduce a named constant in this file explaining why these non-standard values are required (e.g. alignment with PV curation heading).

Copilot uses AI. Check for mistakes.
width: `calc(100% - ${spacings.QUADRUPLE}rem)`,
padding: `${spacings.DOUBLE}rem 0`,
margin: `0 ${spacings.DOUBLE}rem -${spacings.FULL}rem ${spacings.DOUBLE}rem`,
margin: `0 ${spacings.DOUBLE}rem ${pixelsToRem(36)}rem ${spacings.DOUBLE}rem`,
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

The PR description still contains the template placeholders (summary/code changes/testing) without concrete details. Please add a brief user-facing summary and explicit testing steps (e.g. which page to load and expected whitespace change) so reviewers can verify the visual adjustment reliably.

Copilot uses AI. Check for mistakes.
@Nabeel1276 Nabeel1276 self-assigned this Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants