Changeset 1c6d61c in Klonkt for src/views/partials
- Timestamp:
- 06/20/2026 08:19:11 AM (3 months ago)
- Branches:
- main
- Children:
- cf0de0c
- Parents:
- 4dcefa1
- Location:
- src/views/partials
- Files:
-
- 2 edited
-
shared-styles.ejs (modified) (1 diff)
-
view-switcher.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/shared-styles.ejs
r4dcefa1 r1c6d61c 36 36 } 37 37 .view-switch-btn:hover { color: var(--ink); } 38 .view-switch-btn[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); } 38 /* Actief = wit (lichte achtergrond, donkere tekst). Via aria-selected (element- 39 attribuut, door syncAria gezet + op htmx:afterSettle) → htmx-robuust. Op niet- 40 feed-pagina's zet syncAria aria-selected=false → beide grijs. */ 41 .view-switch-btn[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); } 39 42 40 43 /* Agenda = een EIGEN pill (los van Tijdlijn/Grid, zodat de feed-toggle nooit -
src/views/partials/view-switcher.ejs
r4dcefa1 r1c6d61c 36 36 <div class="view-switcher" role="tablist" aria-label="Weergave"> 37 37 <button type="button" class="view-switch-btn" data-view="timeline" role="tab" 38 aria-selected="<%= ( typeof site !== 'undefined' && site && site.feed_view_default === 'grid') ? 'false' : 'true' %>">38 aria-selected="<%= (!_neutral && !(typeof site !== 'undefined' && site && site.feed_view_default === 'grid')) ? 'true' : 'false' %>"> 39 39 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg> 40 40 <span>Tijdlijn</span> 41 41 </button> 42 42 <button type="button" class="view-switch-btn" data-view="grid" role="tab" 43 aria-selected="<%= ( typeof site !== 'undefined' && site && site.feed_view_default === 'grid') ? 'true' : 'false' %>">43 aria-selected="<%= (!_neutral && (typeof site !== 'undefined' && site && site.feed_view_default === 'grid')) ? 'true' : 'false' %>"> 44 44 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></svg> 45 45 <span>Grid</span>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)