From a3d5e050265cc6b53d89777518d4649222336c92 Mon Sep 17 00:00:00 2001 From: bruno-amorim Date: Mon, 23 Dec 2024 11:55:03 -0300 Subject: [PATCH] fix(content-item): a better way to handle multiple ctas --- .../scss/internal/content-item/_content-item.scss | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/styles/scss/internal/content-item/_content-item.scss b/packages/styles/scss/internal/content-item/_content-item.scss index d32e64d1092..7a08b4d1d0b 100644 --- a/packages/styles/scss/internal/content-item/_content-item.scss +++ b/packages/styles/scss/internal/content-item/_content-item.scss @@ -117,6 +117,19 @@ :host(#{$c4d-prefix}-content-item) ::slotted([slot='footer']) { margin-inline-start: 0; - padding-block: $spacing-05 $spacing-07; + } + + :host(#{$c4d-prefix}-content-item) ::slotted([slot='footer']:first-of-type) { + padding-top: $spacing-05; + } + + :host(#{$c4d-prefix}-content-item) ::slotted([slot='footer']:last-of-type) { + padding-bottom: $spacing-07; + } + + :host(#{$c4d-prefix}-content-item) + ::slotted([slot='footer']:not(:first-of-type):not(:last-of-type)) { + padding-top: 0; + padding-bottom: 0; } }