Skip to content

Commit 2280848

Browse files
author
Brian Genisio
committed
working through the styles of the matching activity
1 parent d27e946 commit 2280848

File tree

6 files changed

+25
-22
lines changed

6 files changed

+25
-22
lines changed

data/answer.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ __Summary__
99
__Responses__
1010

1111
1. **Item 1**
12-
- Selected Answer: No answer selected
12+
- Selected Answer: Tension
1313
- Correct Answer: Discomfort
1414
- Result: ✗ Incorrect
1515

1616
2. **Item 2**
17-
- Selected Answer: No answer selected
17+
- Selected Answer: Frustration
1818
- Correct Answer: Engagement
1919
- Result: ✗ Incorrect
2020

2121
3. **Item 3**
22-
- Selected Answer: No answer selected
22+
- Selected Answer: Engagement
2323
- Correct Answer: Tension
2424
- Result: ✗ Incorrect
2525

2626
4. **Item 4**
27-
- Selected Answer: No answer selected
27+
- Selected Answer: Relief
2828
- Correct Answer: Frustration
2929
- Result: ✗ Incorrect
3030

@@ -35,11 +35,7 @@ __Responses__
3535

3636
__Markdown With Blanks__
3737

38-
Match each subtle cue a leader might notice with what it could signal about the team's emotions.
39-
40-
41-
42-
> **Subtle Cue 1**: Team members are avoiding eye contact and have closed body language. [[blank:Discomfort]]
38+
> **Situation 1**: A teammate says they’re feeling stressed and overwhelmed. [[blank:Discomfort]]
4339
4440

4541
> **Subtle Cue 2**: Several people are nodding, smiling, and leaning forward during a discussion. [[blank:Engagement]]
@@ -55,9 +51,9 @@ Match each subtle cue a leader might notice with what it could signal about the
5551
5652
__Suggested Answers__
5753

58-
- Relief
59-
- Frustration
60-
- Engagement
6154
- Tension
55+
- Engagement
56+
- Frustration
57+
- Relief
6258
- Discomfort
6359

data/examples/matching.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ Matching
44

55
__Markdown With Blanks__
66

7-
Match each subtle cue a leader might notice with what it could signal about the team's emotions.
8-
97
> **Subtle Cue 1**: Team members are avoiding eye contact and have closed body language. [[blank:Discomfort]]
108
119
> **Subtle Cue 2**: Several people are nodding, smiling, and leaning forward during a discussion. [[blank:Engagement]]

data/question.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ Matching
44

55
__Markdown With Blanks__
66

7-
Match each subtle cue a leader might notice with what it could signal about the team's emotions.
8-
9-
> **Subtle Cue 1**: Team members are avoiding eye contact and have closed body language. [[blank:Discomfort]]
7+
> **Situation 1**: A teammate says they’re feeling stressed and overwhelmed. [[blank:Discomfort]]
108
119
> **Subtle Cue 2**: Several people are nodding, smiling, and leaning forward during a discussion. [[blank:Engagement]]
1210

public/design-system

public/modules/matching.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@
141141
margin: 0;
142142
}
143143

144+
.horizontal-cards-card {
145+
min-height: 284px !important;
146+
width: 390px !important;
147+
min-width: 390px !important;
148+
}
149+
150+
.horizontal-cards-card-action {
151+
min-height: 33px !important;
152+
height: 33px !important;
153+
}
154+
144155
/* Selection area within horizontal-cards action area */
145156
.horizontal-cards-card-action .matching-selection-area {
146157
width: 100%;
@@ -169,7 +180,7 @@
169180
align-items: center;
170181
justify-content: center;
171182
width: 100%;
172-
min-height: 36px;
183+
min-height: 33px;
173184
padding: var(--UI-Spacing-spacing-s, 8px) var(--UI-Spacing-spacing-ml, 20px);
174185
border-radius: var(--UI-Radius-radius-s, 8px);
175186
cursor: pointer;
@@ -207,7 +218,7 @@
207218

208219
.matching-selection-area:hover {
209220
border-color: var(--Colors-Learn-Practice-Selection-Area-Border-Active);
210-
background: var(--Colors-Backgrounds-Main-Light);
221+
211222
}
212223

213224
.matching-selection-area:focus {

public/modules/matching.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function initMatching({ activity, state, postResults, persistedAnswers =
8484
if (selected) {
8585
return `<div class="matching-selection-area matched button button-primary body-large" data-item-index="${itemIndex}">${selected}</div>`;
8686
} else {
87-
return `<div class="matching-selection-area empty body-xxsmall" data-item-index="${itemIndex}">Add label</div>`;
87+
return `<div class="matching-selection-area empty body-xxsmall" data-item-index="${itemIndex}">Best response</div>`;
8888
}
8989
}
9090

@@ -276,7 +276,7 @@ export function initMatching({ activity, state, postResults, persistedAnswers =
276276
// Add matched state classes (button styling)
277277
selectionArea.classList.add('matched', 'button', 'button-primary', 'body-large');
278278
} else {
279-
selectionArea.textContent = 'Add label';
279+
selectionArea.textContent = 'Best response';
280280
// Remove matched state classes
281281
selectionArea.classList.remove('matched', 'button', 'button-primary', 'body-large');
282282
// Add empty state classes

0 commit comments

Comments
 (0)