Skip to content

Commit e2008ab

Browse files
authored
Added focus-visible outline to notices in the day overview (#19)
2 parents 9f41689 + 7038cc1 commit e2008ab

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/components/ServiceDayTooltip.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ export class ServiceDayTooltip extends Component {
107107
const style = ServiceRow.STATUS_STYLES[n.impact];
108108
const duration = ServiceDayTooltip.duration(n.duration());
109109
return html`
110-
<li class="relative flex items-center gap-2 py-2">
110+
<li
111+
class="relative flex items-center gap-2 py-2 rounded-lg has-focus-visible:outline-2 outline-offset-2 outline-blue-400"
112+
>
111113
<div class="group/indicator relative z-10">
112114
<svg
113115
xmlns="http://www.w3.org/2000/svg"
@@ -121,8 +123,11 @@ export class ServiceDayTooltip extends Component {
121123
class="absolute top-full left-0 z-50 mt-1 block w-max rounded-lg bg-neutral-800 px-2 py-1 text-sm leading-normal font-medium text-white shadow-md ring-1 ring-white/10 ring-inset group-[:not(:hover)]/indicator:sr-only lg:-top-1 lg:-left-1 lg:mt-0 lg:-translate-x-full"
122124
>${style.label}</span>
123125
</div>
124-
<a href="/notices/${n
125-
.id}" class="font-medium text-white">${n
126+
<a
127+
href="/notices/${n
128+
.id}"
129+
class="font-medium text-white focus-visible:outline-none"
130+
>${n
126131
.name}<span
127132
class="absolute inset-0"
128133
></span></a>

0 commit comments

Comments
 (0)