Skip to content

Commit f000cb6

Browse files
author
Cooper
committed
feat: grey header when clicked
1 parent effe910 commit f000cb6

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

frontend/src/components/schedule6/index.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,12 @@
114114
margin: 0;
115115
}
116116

117-
.schedule-6__totals-label {
118-
font-weight: 600;
117+
// An expanded row keeps the grey its header shows on hover. `--cds-layer-hover` is the very token
118+
// Carbon's own `.cds--accordion__heading:hover` uses, so the two states match exactly and both
119+
// follow the active theme. Scoped to this page's accordion, and at three classes it outranks
120+
// Carbon's two-class hover rule.
121+
.schedule-6__section .cds--accordion__item--active > .cds--accordion__heading {
122+
background-color: var(--cds-layer-hover);
119123
}
120124

121125
.schedule-6__empty {

frontend/src/components/schedule6/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ const Schedule6: FC = () => {
788788

789789
<Column sm={4} md={8} lg={16} className="schedule-6__section">
790790
<section aria-label="Totals" className="schedule-6__totals">
791-
<span className="schedule-6__totals-label">Totals: </span>
791+
<span>Totals: </span>
792792
{/* Its own container, NOT the record-row grid: that grid's 10rem minimum track is sized
793793
for rows of inputs and wraps these three short numbers into a stack. */}
794794
<dl className="schedule-6__totals-fields">

0 commit comments

Comments
 (0)