diff --git a/TODO.md b/TODO.md index ea7027c..07d9c15 100644 --- a/TODO.md +++ b/TODO.md @@ -29,7 +29,7 @@ - [ ] Temporary names - [x] Consistent player list order -- [ ] Crew objectives reveal area should be connected to button +- [x] Crew objectives reveal area should be connected to button ## Fixes diff --git a/frontend/src/assets/css/scene-play.css b/frontend/src/assets/css/scene-play.css index 6f6a32f..1fbd444 100644 --- a/frontend/src/assets/css/scene-play.css +++ b/frontend/src/assets/css/scene-play.css @@ -157,7 +157,14 @@ color: var(--text-muted); } -/* Crew Objectives toggle at the end of the roster */ +/* The toggle and revealed objectives share one continuous panel. */ +.crew-objectives-panel { + background: color-mix(in srgb, var(--accent) 12%, transparent); + border: 1px solid var(--accent); + border-radius: var(--radius-md); + overflow: hidden; +} + .crew-objectives-toggle { display: flex; align-items: center; @@ -166,9 +173,9 @@ width: 100%; text-align: left; padding: 0.55rem 0.7rem; - background: color-mix(in srgb, var(--accent) 12%, transparent); - border: 1px solid var(--accent); - border-radius: var(--radius-md); + background: transparent; + border: 0; + border-radius: 0; color: var(--text); font-family: var(--font-heading); font-size: 0.85rem; @@ -180,6 +187,11 @@ background: color-mix(in srgb, var(--accent) 22%, transparent); } +.crew-objectives-toggle:focus-visible { + outline: 2px solid var(--accent); + outline-offset: -3px; +} + .crew-objectives-toggle .co-count { font-weight: 700; color: var(--accent); @@ -187,9 +199,7 @@ .crew-objectives-detail { padding: 0.6rem 0.7rem; - background: var(--well); - border: 1px solid var(--edge); - border-radius: var(--radius-md); + border-top: 1px solid var(--edge-accent); display: flex; flex-direction: column; gap: 0.35rem; diff --git a/frontend/src/components/scene/CrewColumn.svelte b/frontend/src/components/scene/CrewColumn.svelte index b42e338..bd1f0ba 100644 --- a/frontend/src/components/scene/CrewColumn.svelte +++ b/frontend/src/components/scene/CrewColumn.svelte @@ -79,33 +79,35 @@ {/each} - - - {#if showObjectives} -
As the Deep, tick these off as the crew earns them.
{/if} -As the Deep, tick these off as the crew earns them.
{/if} +