Page MenuHomePhabricator

cdx-message has border without margins
Open, Needs TriagePublicBUG REPORT

Description

Codex "cdx-message" class has border but without any top and bottom margins. this cause sometimes to overlap with next bordered objects like attached picture

image.png (262×1 px, 53 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I believe this is by design -- we don't know every way messages could be used, so we leave it up to the user to add margins (or padding) when applicable. cc: @bmartinezcalvo @DTorsani-WMF

I believe this is by design -- we don't know every way messages could be used, so we leave it up to the user to add margins (or padding) when applicable. cc: @bmartinezcalvo @DTorsani-WMF

Yes, since we don't know where this Message could be included, the separation between the Message and the surrounding elements can be customized by using our spacing tokens. This means the padding is not part of the Message component itself but is handled as a separate element.