Skip to content

Commit

Permalink
fix(content-item): a better way to handle multiple ctas
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-amorim committed Dec 23, 2024
1 parent 8aff37f commit a3d5e05
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/styles/scss/internal/content-item/_content-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit a3d5e05

Please sign in to comment.