Page MenuHomePhabricator

styles, Card: Fix CSS-only Card with icon
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

What's happening?:

The CSS-only version of Card with icon no longer has margin on the card's icon.

card_with_icon_no_margin.png (182×376 px, 10 KB)

Reason: When we increased the specificity [T351753] of cdx-card__icon to cdx-card__icon.cdx-icon, some styles are no longer being applied to the CSS-only version because the card’s icon doesn't have the class cdx-icon.

What should have happened instead?:

Card with icon should have margin applied between the card's icon and text.

card_with_icon_margin.png (198×350 px, 10 KB)

Software version
Codex v1.2.1

Event Timeline

Change 991102 had a related patch set uploaded (by LWatson; author: LWatson):

[design/codex@main] styles, Card: Fix margin in CSS-only version Card with icon

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

lwatson changed the task status from Open to In Progress.Jan 17 2024, 1:25 AM
lwatson set the point value for this task to 1.
lwatson renamed this task from styles, Card: Fix margin in CSS-only version Card with icon to styles, Card: Fix CSS-only Card with media .Jan 18 2024, 7:50 PM

Change 991102 merged by jenkins-bot:

[design/codex@main] styles, Card: Fix CSS-only Card with icon

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

lwatson renamed this task from styles, Card: Fix CSS-only Card with media to styles, Card: Fix CSS-only Card with icon .Jan 19 2024, 11:17 PM

Change 992533 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/core@master] Update Codex from v1.2.1 to v1.3.0

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

Change 992533 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v1.2.1 to v1.3.0

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