Skip to content

Commit 58e0689

Browse files
committed
Standardize header styles for test panel
The test panel drawer headers display inconsistent typography and toggle indicators between the case creation form and test execution status. This change aligns font properties and stateful indicator styles across both sections to establish visual continuity in the interview view.
1 parent 8394d54 commit 58e0689

2 files changed

Lines changed: 31 additions & 4 deletions

File tree

‎web/interview.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ <h1 id="problem-title">Loading interview...</h1>
284284
<ol id="candidate-case-list" class="small"></ol>
285285
</details>
286286
<button id="results-toggle" type="button">
287+
<span id="results-chevron" aria-hidden="true"></span>
287288
<span id="results-label">Test results</span>
288-
<span id="results-chevron">v</span>
289289
</button>
290290
<div id="results-body" class="results-body">
291291
<p class="muted small">

‎web/styles.css‎

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,16 +1425,43 @@ p {
14251425
flex-basis: auto;
14261426
}
14271427

1428+
.test-drawer summary::-webkit-details-marker,
1429+
.test-drawer summary::marker {
1430+
display: none;
1431+
}
1432+
1433+
.test-drawer summary,
14281434
#results-toggle {
14291435
display: flex;
1436+
align-items: center;
1437+
gap: 0.5rem;
14301438
width: 100%;
1431-
justify-content: space-between;
1439+
padding: 0.5rem 1rem;
14321440
border: 0;
14331441
background: transparent;
14341442
color: var(--sub);
1435-
padding: 0.5rem 1rem;
1436-
cursor: pointer;
1443+
font-family: inherit;
1444+
font-size: 0.875rem;
14371445
font-weight: 700;
1446+
cursor: pointer;
1447+
text-align: left;
1448+
}
1449+
1450+
.test-drawer summary::before,
1451+
#results-chevron::before {
1452+
content: "";
1453+
display: inline-block;
1454+
width: 0;
1455+
height: 0;
1456+
border-top: 4px solid transparent;
1457+
border-bottom: 4px solid transparent;
1458+
border-left: 6px solid var(--sub);
1459+
transition: transform 120ms ease;
1460+
}
1461+
1462+
.test-drawer details[open] summary::before,
1463+
#results-toggle.open #results-chevron::before {
1464+
transform: rotate(90deg);
14381465
}
14391466

14401467
.results-body {

0 commit comments

Comments
 (0)