Skip to content

Commit e0f4413

Browse files
committed
fix(ServiceCard): Add horizontal layout to the ServiceCard (patternfly#260)
* Add horizontal layout to the ServiceCard * fix(ServiceCard): Update tests * fix(ServiceCard): Support isFullHeight
1 parent c5a3877 commit e0f4413

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/module/patternfly-docs/content/extensions/component-groups/examples/ServiceCard/ServiceCardExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const BasicExample: React.FunctionComponent = () => (
2323
component="a"
2424
href='www.patternfly.org'
2525
>
26-
Learn More
26+
Learn more
2727
</Button></>
2828
}
2929
/>

packages/module/patternfly-docs/content/extensions/component-groups/examples/ServiceCard/ServiceCardGalleryExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const ServiceCardGalleryExample: React.FunctionComponent = () => (
3939
component="a"
4040
href='www.patternfly.org'
4141
>
42-
Learn More
42+
Learn more
4343
</Button></>
4444
}
4545
/>

packages/module/src/ServiceCard/ServiceCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { HelperTextItem } from '@patternfly/react-core/dist/dynamic/components/H
55
import { createUseStyles } from 'react-jss';
66
import clsx from 'clsx';
77

8-
export interface ServiceCardProps {
8+
export interface ServiceCardProps extends CardProps {
99
/** Service card title */
1010
title: string;
1111
/** Service card subtitle */

packages/module/src/ServiceCard/__snapshots__/ServiceCard.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ exports[`ServiceCard component should render ServiceCard component 1`] = `
7878
class="pf-v6-l-flex pf-m-row pf-m-align-items-center"
7979
>
8080
<div
81-
class="image-0-2-2"
81+
class="pf-v5-l-flex pf-m-row pf-m-align-items-center"
8282
>
8383
/
8484
</div>

0 commit comments

Comments
 (0)