Skip to content

fix(website): limit Storm-column gradient to the comparison matrix#195

Merged
zantvoort merged 1 commit into
mainfrom
fix/comparison-gradient-scope
Jul 7, 2026
Merged

fix(website): limit Storm-column gradient to the comparison matrix#195
zantvoort merged 1 commit into
mainfrom
fix/comparison-gradient-scope

Conversation

@zantvoort

Copy link
Copy Markdown
Collaborator

What

The brand gradient on the Storm column (column 2) was styled via .storm-tut .cmp thead th:nth-child(2) / .storm-tut .cmp tbody tr td:nth-child(2). Since both the /comparison decision matrix and every tutorial comparison table share the .cmp class inside .storm-tut, the gradient also leaked into the tutorial tables.

Change

  • tutorialTheme.js: the two gradient rules now target a .cmp-brand modifier instead of .cmp, so plain .cmp tables keep column 2 unstyled (same treatment as the other columns).
  • comparison.js: the decision matrix is now <table class="cmp cmp-brand">, so it remains the only place with the gradient.
  • Updated the surrounding CSS comments.

Effect

  • /comparison matrix: gradient unchanged.
  • Tutorial comparison tables (e.g. /tutorials/transactions, /tutorials/n-plus-one, /tutorials/projections): Storm column is now plain, no gradient. They keep the framed card, striping, and header styling from .cmp.

The brand gradient on column 2 was applied via .storm-tut .cmp, which is
shared by every comparison table, so it also tinted the tutorial tables.
Scope the gradient to a .cmp-brand modifier used only on the /comparison
decision matrix; tutorial .cmp tables keep column 2 unstyled.
@zantvoort zantvoort merged commit f699f0d into main Jul 7, 2026
7 checks passed
@zantvoort zantvoort deleted the fix/comparison-gradient-scope branch July 7, 2026 22:07
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