diff --git a/docs/dotcom-v2-migration.md b/docs/dotcom-v2-migration.md
index bbda912993f..a2f49438358 100644
--- a/docs/dotcom-v2-migration.md
+++ b/docs/dotcom-v2-migration.md
@@ -3,89 +3,95 @@
This document will review in detail the changes in Carbon for IBM.com v1 to v2.
## Global changes
-Carbon for IBM.com v2 uses Carbon v11, which utilizes [Dart Sass](https://sass-lang.com/dart-sass) (`sass`), as opposed to
+
+Carbon for IBM.com v2 uses Carbon v11, which utilizes
+[Dart Sass](https://sass-lang.com/dart-sass) (`sass`), as opposed to
`node-sass`. This introduces some new Sass features such as
-[`@use`](https://sass-lang.com/documentation/at-rules/use) and [`@forward`](https://sass-lang.com/documentation/at-rules/forward) keywords ([`@import`](https://sass-lang.com/documentation/at-rules/import) is no longer used), and
+[`@use`](https://sass-lang.com/documentation/at-rules/use) and
+[`@forward`](https://sass-lang.com/documentation/at-rules/forward) keywords
+([`@import`](https://sass-lang.com/documentation/at-rules/import) is no longer
+used), and
[namespaces](https://sass-lang.com/documentation/at-rules/use#choosing-a-namespace).
For Carbon v11 migration guidance, see their
[migration guide](https://github.com/carbon-design-system/carbon/blob/main/docs/migration/v11.md).
## Components
-| Component | Changes |
-| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
-| back-to-top | No API changes. |
-| background-media | No API changes. |
-| button-expressive | Deprecated in favor of `button`. |
-| button-group | No API changes. |
-| callout-with-media | View [changes](#callout-with-media). |
-| callout-quote | View [changes](#callout-quote). |
-| card | View [changes](#card). |
-| card-group-card-link-item | Deprecated in favor of [card](#card) or [content-item](#content-item). |
-| card-in-card | No API changes. |
-| card-link | Deprecated in favor of [card](#card) (link variant). |
-| card-section-carousel | Deprecated in favor of `content-section` or `content-block` combined with `carousel`. |
-| card-section-images | Removed - use `card-section`. |
-| card-section-simple | Deprecated in favor of `content-section` or `content-block` combined with `card-group`. |
-| content-block-cards | Deprecated in favor of `content-section` or `content-block` combined with `card-group`. |
-| content-block-horizontal | Deprecated in favor of `content-section` or `content-block` combined with `content-item-horizontal`. |
-| content-block-media | Deprecated in favor of `content-section` or `content-block` combined with `video-player`/`image` components. |
-| content-block-mixed | Deprecated in favor of `content-section` or `content-block` combined with `video-player`/`image`, `pictogram-items`, and other `content-group` components.|
-| content-block-segmented | Deprecated in favor of `content-section` or `content-block`. |
-| content-block-simple | Deprecated in favor of `content-section` or `content-block`. |
-| content-group-banner | View [changes](#content-group-banner). |
-| content-group-horizontal | Removed - use `content-block-horizontal`. |
-| content-group-cards | Deprecated in favor of `content-section` or `content-block` combined with `card-group`. |
-| content-group-pictograms | Deprecated in favor of `content-section` or `content-block` combined with `content-item` (pictogram variant). |
-| content-group-simple | Deprecated in favor of `content-section` or `content-block` combined with `content-item`. |
-| content-item | View [changes](#content-item) |
-| content-item-horizontal | View [changes](#content-item-horizontal) |
-| cta | View [changes](#cta) |
-| cta-block | Deprecated in favor of `content-section` or `content-block` combined with `content-item`. |
-| cta-section | Deprecated in favor of `content-section` or `content-block` combined with `content-item`. |
-| dotcom-shell | No API changes. |
-| feature-card-block-large | Removed - use `feature-card`. |
-| feature-card-block-medium | Removed - use `feature-card`. |
-| feature-section | View [changes](#feature-section). |
-| filter-panel | View [changes](#filter-panel). |
-| footer | No API changes. |
-| horizontal-rule | View [changes](#horizontal-rule). |
-| image | View [changes](#image). |
-| image-with-caption | Removed - use `image` component. |
-| leadspace | View [changes](#leadspace). |
-| leadspace-block | View [changes](#leadspace-block). |
-| leadspace-with-search | View [changes](#leadspace-with-search). |
-| lightbox-media-viewer | No API changes. |
-| link-list | View [changes](#link-list). |
-| link-with-icon | No API changes. |
-| logo-grid | Deprecated in favor of `content-section` or `content-block` combined with `image-group`. |
-| pictogram-item | Deprecated in favor of `content-item` (pictogram variation). |
-| quote | No API changes. |
-| scroll-animations | No API changes. |
-| search-with-typeahead | No API changes. |
-| table-of-contents | No API changes. |
-| tabs-extended-media | Deprecated in favor of `tabs-extended`. |
-| tag-group | Deprecated in favor of wrapping Carbon `tag` in a parent container. |
-| tag-link | Deprecated in favor of Carbon `tag`. |
-| universal-banner | View [changes](#universal-banner) |
+| Component | Changes |
+| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| back-to-top | No API changes. |
+| background-media | No API changes. |
+| button-expressive | Deprecated in favor of `button`. |
+| button-group | No API changes. |
+| callout-with-media | View [changes](#callout-with-media). |
+| callout-quote | View [changes](#callout-quote). |
+| card | View [changes](#card). |
+| card-group-card-link-item | Deprecated in favor of [card](#card) or [content-item](#content-item). |
+| card-in-card | No API changes. |
+| card-link | Deprecated in favor of [card](#card) (link variant). |
+| card-section-carousel | Deprecated in favor of `content-section` or `content-block` combined with `carousel`. |
+| card-section-images | Removed - use `card-section`. |
+| card-section-simple | Deprecated in favor of `content-section` or `content-block` combined with `card-group`. |
+| carousel | No API changes. |
+| content-block-cards | Deprecated in favor of `content-section` or `content-block` combined with `card-group`. |
+| content-block-horizontal | Deprecated in favor of `content-section` or `content-block` combined with `content-item-horizontal`. |
+| content-block-media | Deprecated in favor of `content-section` or `content-block` combined with `video-player`/`image` components. |
+| content-block-mixed | Deprecated in favor of `content-section` or `content-block` combined with `video-player`/`image`, `pictogram-items`, and other `content-group` components. |
+| content-block-segmented | Deprecated in favor of `content-section` or `content-block`. |
+| content-block-simple | Deprecated in favor of `content-section` or `content-block`. |
+| content-group-banner | View [changes](#content-group-banner). |
+| content-group-horizontal | Removed - use `content-block-horizontal`. |
+| content-group-cards | Deprecated in favor of `content-section` or `content-block` combined with `card-group`. |
+| content-group-pictograms | Deprecated in favor of `content-section` or `content-block` combined with `content-item` (pictogram variant). |
+| content-group-simple | Deprecated in favor of `content-section` or `content-block` combined with `content-item`. |
+| content-item | View [changes](#content-item) |
+| content-item-horizontal | View [changes](#content-item-horizontal) |
+| cta | View [changes](#cta) |
+| cta-block | Deprecated in favor of `content-section` or `content-block` combined with `content-item`. |
+| cta-section | Deprecated in favor of `content-section` or `content-block` combined with `content-item`. |
+| dotcom-shell | No API changes. |
+| feature-card-block-large | Removed - use `feature-card`. |
+| feature-card-block-medium | Removed - use `feature-card`. |
+| feature-section | View [changes](#feature-section). |
+| filter-panel | View [changes](#filter-panel). |
+| footer | No API changes. |
+| horizontal-rule | View [changes](#horizontal-rule). |
+| image | View [changes](#image). |
+| image-with-caption | Removed - use `image` component. |
+| leadspace | View [changes](#leadspace). |
+| leadspace-block | View [changes](#leadspace-block). |
+| leadspace-with-search | View [changes](#leadspace-with-search). |
+| lightbox-media-viewer | No API changes. |
+| link-list | View [changes](#link-list). |
+| link-with-icon | No API changes. |
+| logo-grid | Deprecated in favor of `content-section` or `content-block` combined with `image-group`. |
+| pictogram-item | Deprecated in favor of `content-item` (pictogram variation). |
+| quote | No API changes. |
+| scroll-animations | No API changes. |
+| search-with-typeahead | No API changes. |
+| table-of-contents | No API changes. |
+| tabs-extended-media | Deprecated in favor of `tabs-extended`. |
+| tag-group | Deprecated in favor of wrapping Carbon `tag` in a parent container. |
+| tag-link | Deprecated in favor of Carbon `tag`. |
+| universal-banner | View [changes](#universal-banner) |
### Callout with media
-- New options for `color-scheme` property: `regular`,
- `inverse` `layer`, `cyan`, `purple`
+- New options for `color-scheme` property: `regular`, `inverse` `layer`, `cyan`,
+ `purple`
- New callout style tokens
### Callout quote
-- New options for `color-scheme` property: `regular`,
- `inverse` `layer`, `cyan`, `purple`
+- New options for `color-scheme` property: `regular`, `inverse` `layer`, `cyan`,
+ `purple`
- New callout style tokens
### Card
- The `card-footer` `icon-placement` property has been removed
-- Removed `border` property - clickable cards inherit the Carbon v11 experimental
- tile border style
+- Removed `border` property - clickable cards inherit the Carbon v11
+ experimental tile border style
- New `aspect-ratio` property with `1:1`, `2:1`, `3:2`, `4:3`, and `16:9` as
options
- New `link` property which takes the place of the deprecated `card-link`
@@ -93,14 +99,14 @@ For Carbon v11 migration guidance, see their
### Content group banner
- `content-group-banner` renamed to `in-page-banner`
-- New options for `color-scheme` property: `regular`,
- `inverse` `layer`, `cyan`, `purple`
+- New options for `color-scheme` property: `regular`, `inverse` `layer`, `cyan`,
+ `purple`
### Content item
- `content-item` new property `horizontal`
-- `content-item` now renders different variations for `statistics`, `pictogram`, `media`, and `logo`
-
+- `content-item` now renders different variations for `statistics`, `pictogram`,
+ `media`, and `logo`
### Content item horizontal
@@ -109,18 +115,21 @@ For Carbon v11 migration guidance, see their
### CTA
-In Carbon for IBM.com v2, `cta` and all subcomponents have
-been deprecated in favor of their base components. All CTA-like features
-can now be used natively within `button`, `card`, `feature-card`, and `link-with-icon`.
+In Carbon for IBM.com v2, `cta` and all subcomponents have been deprecated in
+favor of their base components. All CTA-like features can now be used natively
+within `button`, `card`, `feature-card`, and `link-with-icon`.
-Each new component has a `cta-type` property that can change the icon and behavior of the component. See the components' documentation for more
+Each new component has a `cta-type` property that can change the icon and
+behavior of the component. See the components' documentation for more
information.
### Feature section
-- The `feature-section-card-link` has been deprecated in favor of the `card` (link) variation
+- The `feature-section-card-link` has been deprecated in favor of the `card`
+ (link) variation
- `media-alignment` property has been removed
-- `color-scheme` property now accepts `regular` (default), `inverse`, `cyan`, `purple`
+- `color-scheme` property now accepts `regular` (default), `inverse`, `cyan`,
+ `purple`
### Filter panel
@@ -128,9 +137,8 @@ information.
### Horizontal rule
-- New options for `contrast` property: `subtle` (default),
- `strong` (replaces `medium_contrast`),
- `low_contrast`, `high_contrast`
+- New options for `contrast` property: `subtle` (default), `strong` (replaces
+ `medium_contrast`), `low_contrast`, `high_contrast`
### Image
@@ -148,15 +156,18 @@ information.
### Leadspace with Search
- `leadspace-with-search-heading` has been replaced with `leadspace-heading`
-- `leadspace-with-search-content-copy` has been replaced with `leadspace-with-search-copy`
+- `leadspace-with-search-content-copy` has been replaced with
+ `leadspace-with-search-copy`
- New highlight attribute in `dds-leadspace-heading`
- Deprecated `background-media` image variant
- Removed `leadspace-with-search-heading`, `leadspace-with-search-content`,
-`leadspace-with-search-content-heading`, `leadspace-with-search-content-copy`
+ `leadspace-with-search-content-heading`, `leadspace-with-search-content-copy`
### Link list
-- The `default` section has taken the design specs of `end of section`. As a result, `end of section` has been removed. In addition to this, the following components have been replaced:
+- The `default` section has taken the design specs of `end of section`. As a
+ result, `end of section` has been removed. In addition to this, the following
+ components have been replaced:
- `link-list-item-card` has been replaced with `link-list-item`
- `link-list-item-card-cta` has been replaced with `link-list-item-cta`
diff --git a/packages/styles/scss/components/carousel/_carousel.scss b/packages/styles/scss/components/carousel/_carousel.scss
index 551f2aaefbe..f8b1894461e 100644
--- a/packages/styles/scss/components/carousel/_carousel.scss
+++ b/packages/styles/scss/components/carousel/_carousel.scss
@@ -25,7 +25,7 @@
}
@include breakpoint(lg) {
- --#{$c4d-prefix}--carousel--page-size: 3;
+ --#{$c4d-prefix}--carousel--page-size: 4;
}
[role='region'] {
diff --git a/packages/styles/scss/components/image/_image.scss b/packages/styles/scss/components/image/_image.scss
index f7755bd467b..a8050643461 100644
--- a/packages/styles/scss/components/image/_image.scss
+++ b/packages/styles/scss/components/image/_image.scss
@@ -47,10 +47,12 @@
}
:host(#{$c4d-prefix}-image)[card-group-item],
- :host(#{$c4d-prefix}-card-cta-image) {
+ :host(#{$c4d-prefix}-image) {
@include ratio-base(4, 3, true);
padding-top: 75%;
+ height: 0;
+ overflow: hidden;
.#{$c4d-prefix}--image__img {
position: absolute;
diff --git a/packages/web-components/examples/codesandbox/components-react/carousel/src/index.js b/packages/web-components/examples/codesandbox/components-react/carousel/src/index.js
index c4527f3e4b2..9e7f0ee7811 100644
--- a/packages/web-components/examples/codesandbox/components-react/carousel/src/index.js
+++ b/packages/web-components/examples/codesandbox/components-react/carousel/src/index.js
@@ -9,7 +9,6 @@
import React from 'react';
import { render } from 'react-dom';
-import ArrowRight20 from '@carbon/icons-react/es/arrow--right/20.js';
import C4DCard from '@carbon/ibmdotcom-web-components/es/components-react/card/card';
import C4DCardFooter from '@carbon/ibmdotcom-web-components/es/components-react/card/card-footer';
import C4DCardHeading from '@carbon/ibmdotcom-web-components/es/components-react/card/card-heading';
@@ -25,11 +24,10 @@ const copyOdd = `
// eslint-disable-next-line react/prop-types
const Card = ({ copy = copyDefault, heading = headingDefault } = {}) => (
- {copy} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et
ultricies est. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et
ultricies est. Mauris iaculis eget dolor nec hendrerit.
Phasellus at elit sollicitudin, sodales nulla quis, consequat libero. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et
ultricies est. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et
ultricies est. Mauris iaculis eget dolor nec hendrerit.
Phasellus at elit sollicitudin, sodales nulla quis, consequat libero. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et
ultricies est. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et
ultricies est. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et
ultricies est. Mauris iaculis eget dolor nec hendrerit.
Phasellus at elit sollicitudin, sodales nulla quis, consequat libero. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et
ultricies est. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et
ultricies est. Mauris iaculis eget dolor nec hendrerit.
Phasellus at elit sollicitudin, sodales nulla quis, consequat libero. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et
ultricies est. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies
est. Mauris iaculis eget dolor nec hendrerit. Phasellus at elit
- sollicitudin, sodales nulla quis, consequat libero.
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies + est.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et ultricies est. Mauris iaculis eget dolor nec hendrerit. Phasellus at elit sollicitudin, - sodales nulla quis, consequat libero. + sodales nulla quis, consequat libero.
{copy}
+ {image ? ( +{copy}
{image ? ( @@ -49,44 +70,51 @@ const Card = ({ ) : ( '' )} -{copy}
+${copy}
${image @@ -50,7 +48,7 @@ const Card = ({ default-src="${image}"> ` : null} -${copy}
${image ? html` @@ -71,108 +69,60 @@ const CardWithLongHeading = ({ default-src="${image}"> ` : null} -${copy}
-