@patternfly/quickstarts 6.5.0-prerelease.2 → 6.5.0-prerelease.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +2 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/quickstarts-full.es.js +2 -6
- package/dist/quickstarts-full.es.js.map +1 -1
- package/package.json +1 -1
- package/src/catalog/QuickStartTile.tsx +3 -7
- package/src/catalog/__tests__/QuickStartTile.spec.tsx +2 -1
package/package.json
CHANGED
|
@@ -132,18 +132,14 @@ const QuickStartTile: FC<QuickStartTileProps> = ({
|
|
|
132
132
|
/>
|
|
133
133
|
) : undefined;
|
|
134
134
|
|
|
135
|
+
const cardClasses = `pfext-catalog-item${isActive ? ' pf-m-current' : ''}`;
|
|
136
|
+
|
|
135
137
|
return (
|
|
136
138
|
<Card
|
|
137
139
|
id={`${id}-catalog-tile`}
|
|
138
140
|
style={{ height: '100%' }}
|
|
139
141
|
data-testid={`qs-card-${camelize(displayName)}`}
|
|
140
|
-
className=
|
|
141
|
-
{...(isActive && {
|
|
142
|
-
isClickable: true,
|
|
143
|
-
isSelectable: true,
|
|
144
|
-
isSelected: true,
|
|
145
|
-
isClicked: true,
|
|
146
|
-
})}
|
|
142
|
+
className={cardClasses}
|
|
147
143
|
>
|
|
148
144
|
<CardHeader
|
|
149
145
|
{...(action && {
|
|
@@ -18,6 +18,7 @@ describe('QuickStartTile', () => {
|
|
|
18
18
|
);
|
|
19
19
|
const catalogTile = wrapper.find(Card);
|
|
20
20
|
expect(catalogTile.exists()).toBeTruthy();
|
|
21
|
+
expect(catalogTile.hasClass('pf-m-current')).toBe(false);
|
|
21
22
|
});
|
|
22
23
|
|
|
23
24
|
it('should load proper catalog tile with featured property', () => {
|
|
@@ -31,6 +32,6 @@ describe('QuickStartTile', () => {
|
|
|
31
32
|
);
|
|
32
33
|
const catalogTile = wrapper.find(Card);
|
|
33
34
|
expect(catalogTile.exists()).toBeTruthy();
|
|
34
|
-
expect(catalogTile.
|
|
35
|
+
expect(catalogTile.hasClass('pf-m-current')).toBe(true);
|
|
35
36
|
});
|
|
36
37
|
});
|