This branch builds on top of https://github.com/accessdigital/wilson/pull/30 is merged. Probably best reviewing and merging that one first. Note: Getting Wilson features reviewed and merged is becoming more of a priority because we have a Wilson-based project with a very short deadline which is waiting for these updates before starting.
Introduces a "Previous / next navigation" paragraph which allows an editor to add cards to their page which link to the "previous" or "next" page or article.
The editor picks the content via node reference fields and the templates automatically grab the title and image from the content (preference is for the teaser title & image fields, but will fallback to node title and article image where available).
Paragraph contains the usual "settings" fields for layout, padding and animation etc, except for background image. I thought it best not to use this component with a background image for fear of the small cards being difficult to see. I could be persuaded otherwise though.
This PR also corrects some issues with the Tailwind safelist, which reduces the overall CSS file size and restores some missing styles.
Demo showing the component added twice to the same page with different prev/next nodes and styling:
This branch builds on top of https://github.com/accessdigital/wilson/pull/30 is merged. Probably best reviewing and merging that one first. Note: Getting Wilson features reviewed and merged is becoming more of a priority because we have a Wilson-based project with a very short deadline which is waiting for these updates before starting.
Demo showing the component added twice to the same page with different prev/next nodes and styling:
Images dropped on mobile:
Desktop hover effect:
CMS: