Currently as margins are added to the grid content rather than the grid itself, the column widths are not calculated correctly. If we add margins on the grid level rather than section and add negative margin and padding to sections with background colour (and hero) we can ensure the correct sizing.
It also happened that the toc hide/show metadata config wasn't being read correctly so that is also resolved here. If it was intended for TOC to be mandatory on all article pages I can revert that change.
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.
Currently as margins are added to the grid content rather than the grid itself, the column widths are not calculated correctly. If we add margins on the grid level rather than section and add negative margin and padding to sections with background colour (and hero) we can ensure the correct sizing. It also happened that the
toc
hide/show metadata config wasn't being read correctly so that is also resolved here. If it was intended for TOC to be mandatory on all article pages I can revert that change.Fix #355
Test URLs: Content Hub: Before: https://main--hlx-test--urfuwo.hlx.live/draft/rjwtrmn/the-article-copy After: https://355-article-page-grid-refactor--hlx-test--urfuwo.hlx.live/draft/rjwtrmn/the-article-copy Before: https://main--hlx-test--urfuwo.hlx.live/draft/rjwtrmn/the-article-copy-without-toc After: https://355-article-page-grid-refactor--hlx-test--urfuwo.hlx.live/draft/rjwtrmn/the-article-copy-without-toc Before: https://main--hlx-test--urfuwo.hlx.live/draft/rjwtrmn/the-article-copy-full-background After: https://355-article-page-grid-refactor--hlx-test--urfuwo.hlx.live/draft/rjwtrmn/the-article-copy-full-background