@patternfly/quickstarts 6.5.0-prerelease.3 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/quickstarts",
3
- "version": "6.5.0-prerelease.3",
3
+ "version": "6.5.0-prerelease.4",
4
4
  "description": "PatternFly quick starts",
5
5
  "files": [
6
6
  "src",
@@ -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="pfext-catalog-item"
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.prop('isSelected')).toBe(true);
35
+ expect(catalogTile.hasClass('pf-m-current')).toBe(true);
35
36
  });
36
37
  });