Skip to content

Commit

Permalink
fix(feature-section): stretch image if needed (carbon-design-system#1…
Browse files Browse the repository at this point in the history
…2126)

* fix(feature-card): stretch image to fill if needed

* fix(feature-section): stretch image to fill if needed

* fix(feature-card): use css logical properties

---------

Co-authored-by: Matthew Oliveira <[email protected]>
  • Loading branch information
2 people authored and deathcave committed Dec 4, 2024
1 parent 64f8614 commit 26d87a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ $feature-flags: (
::slotted([slot='image']),
#{$c4d-prefix}-image {
z-index: 0;
block-size: 100%;

// Opacity is adjusted on hover. See above.
&::before {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corp. 2016, 2023
* Copyright IBM Corp. 2016, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -121,6 +121,7 @@

::slotted(#{$c4d-prefix}-image) {
overflow: hidden;
block-size: 100%;

@include breakpoint(sm) {
block-size: aspect-ratio(1, 1);
Expand Down

0 comments on commit 26d87a5

Please sign in to comment.