Skip to content

Commit 2d0e68e

Browse files
committed
Standardize header styles for test panel
Align section header font properties and toggle indicators across both the Add a case and Test results drawers. This ensures visual consistency and proper state representation in the view.
1 parent 59bde8f commit 2d0e68e

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
@@ -275,8 +275,8 @@ <h1 id="problem-title">Loading interview...</h1>
275275
<ol id="candidate-case-list" class="small"></ol>
276276
</details>
277277
<button id="results-toggle" type="button">
278+
<span id="results-chevron" aria-hidden="true"></span>
278279
<span id="results-label">Test results</span>
279-
<span id="results-chevron">v</span>
280280
</button>
281281
<div id="results-body" class="results-body">
282282
<p class="muted small">

‎web/styles.css‎

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,16 +1413,43 @@ p {
14131413
background: var(--surface);
14141414
}
14151415

1416+
.test-drawer summary::-webkit-details-marker,
1417+
.test-drawer summary::marker {
1418+
display: none;
1419+
}
1420+
1421+
.test-drawer summary,
14161422
#results-toggle {
14171423
display: flex;
1424+
align-items: center;
1425+
gap: 0.5rem;
14181426
width: 100%;
1419-
justify-content: space-between;
1427+
padding: 0.5rem 1rem;
14201428
border: 0;
14211429
background: transparent;
14221430
color: var(--sub);
1423-
padding: 0.5rem 1rem;
1424-
cursor: pointer;
1431+
font-family: inherit;
1432+
font-size: 0.875rem;
14251433
font-weight: 700;
1434+
cursor: pointer;
1435+
text-align: left;
1436+
}
1437+
1438+
.test-drawer summary::before,
1439+
#results-chevron::before {
1440+
content: "";
1441+
display: inline-block;
1442+
width: 0;
1443+
height: 0;
1444+
border-top: 4px solid transparent;
1445+
border-bottom: 4px solid transparent;
1446+
border-left: 6px solid var(--sub);
1447+
transition: transform 120ms ease;
1448+
}
1449+
1450+
.test-drawer details[open] summary::before,
1451+
#results-toggle.open #results-chevron::before {
1452+
transform: rotate(90deg);
14261453
}
14271454

14281455
.results-body {

0 commit comments

Comments
 (0)