Skip to content

fix(css): remove dead figcaption offset style - #1158

Merged
wesleyboar merged 1 commit into
mainfrom
fix/remove-dead-figcaption-offset-style
May 20, 2026
Merged

fix(css): remove dead figcaption offset style#1158
wesleyboar merged 1 commit into
mainfrom
fix/remove-dead-figcaption-offset-style

Conversation

@wesleyboar

@wesleyboar wesleyboar commented May 20, 2026

Copy link
Copy Markdown
Member

Overview

news-article-page__media--offset__figcaption applied padding-right: 125px to .figure .figure-caption but:

  • its selector can never match in practice
  • if matched, causes unwanted style1

Related

Changes

  • deleted news-article-page__media--offset__figcaption mixin

Testing

No visible change expected — the selector never matched reachable markup.

UI

N/A

Notes

The selector &.figure .figure-caption requires an element to simultaneously carry a CMS align class (.align-right / .align-left) and Bootstrap's .figure class, with a .figure-caption descendant. This combination cannot be produced through the Text plugin, which is how article body content is authored. Older Texascale editions that did use Bootstrap figures predated this code. Newer websites work exclusively inside the Text plugin, which cannot produce Bootstrap figure markup. The original ???: comment in the mixin already signaled uncertainty about whether it ever applied. And if the code appeared, it would have unwanted padding because of this code (I tested manually).

Made with Cursor.

Footnotes

  1. Seems to be cruft from older version of Texascale. I reproduced the style in Core-CMS, where it looks like a bug. New and old Texascale don't have markup that will be affected by this change.

Co-authored-by: Cursor <cursoragent@cursor.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@wesleyboar
wesleyboar merged commit 86e878a into main May 20, 2026
@wesleyboar
wesleyboar deleted the fix/remove-dead-figcaption-offset-style branch May 20, 2026 04:31
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.

1 participant