Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

885 B
Raw Blame
/* The view switch's icon pair (NeoViewSwitchComponent, variant :icon_pair).
   The caption is the title (mouse) and the aria-label (screen reader); on
   KEYBOARD focus this shows the same word under the tile, because a native
   title never opens on focus, and a function the keyboard cannot name is
   unnamed. Not on hover: there the title already answers, and two tooltips
   over one tile would be two signals for one word. Tokens, so the tip
   follows the theme. */
.view-switch-tile {
  position: relative;
}

.view-switch-tile:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgb(var(--ink));
  color: rgb(var(--cream-50));
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  z-index: 60;
}