-
Notifications
You must be signed in to change notification settings - Fork 264
Closed
Labels
Description
Overview
This task involves implementing a component named RecommendedResourceCard in Studio to display recommended resources to users within the recommended resources side panel. The implementation wraps around the KCard component.
Description and outcomes
-
Markup requirements
- The outermost element is
<KCard><KCard ...> // Other Recommended resources relevant code ... </KCard>
- The outermost element is
-
Styling requirements
- This card inherits from the
KCardcomponent.
- This card inherits from the
-
Architecture requirements
- Is built as a single component
- Wraps around the
KCardcomponent - Has appropriate props to pass data into
KCard - Uses
KIconto render icons - Uses
KIconButtonto render clickable icons - Uses the
learningActivityto dynamically set the learning activity and its corresponding icon - It uses the the
horizontallayoutand thesmallthumbnailDisplay. See KCard specifications

-
Props
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
to |
Router-link object that enables user navigation to the intended route. | Object |
true |
- |
title |
Sets the value of the title text. | String |
false |
null |
level |
Sets the value of the level text. | String |
false |
null |
thumbnailSrc |
Source URL of a thumbnail image | String |
false |
null |
thumbnailScaleType |
Specifies how an image should be scaled within the thumbnail area. See KImg for supported types. |
String |
false |
'centerInside' |
learningActivity |
Sets the value of the learning activity. | String |
false |
null |
- Events
| Name | Description |
|---|---|
focus |
Emitted when the card element has received focus. |
hover |
Emitted when the mouse pointer enters or leaves the card element |
Acceptance Criteria
- Conforms fully to the specification above
Assumptions and Dependencies
- The implementation wraps around the
KCardcomponent - Depends on Implement KCard kolibri-design-system#530
- The
KCardwill initially be developed in Studio before being moved into KDS
Scope
The scope of this task is limited to;
- A card component for recommended resources only.
This task doesn’t include;
- Implementing the
KCardcomponent - Implementing the actions for the pop-out link and thumbs down icons.
Accessibility Requirements
- Card inherits
KCard’s accessibility features
