Page MenuHomePhabricator

Use local styles (or Codex module component if available) instead of Codex card component
Closed, ResolvedPublic

Description

We use the Codex card component for displaying widgets and content sections, but every time we merge a new patch, we end up with several visual regressions (text color changes, icon color changes, etc.). See also T337384.

This is mostly due to these classes

.cdx-card__text__description, 
.cdx-card__text__supporting-text, 
.cdx-card__text__description .cdx-icon, 
.cdx-card__text__supporting-text .cdx-icon

that overwrite both local styles, and Codex styles too.

We should avoid using the Card component, and instead favor the upcoming Codex module component (see T338015), or just use local styles.

Event Timeline

Change 968662 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Remove CdxCard component with all style overrides

https://gerrit.wikimedia.org/r/968662

Change 968662 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Remove CdxCard component with all style overrides

https://gerrit.wikimedia.org/r/968662