Skip to content

Commit 5aa45a6

Browse files
UI: prevent jumping on NavItem (#984)
Close #982
1 parent 9f6baed commit 5aa45a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/components/Nav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface NavItemProps {
5151
export function NavItem(props: NavItemProps) {
5252
return (
5353
<a
54-
class={`md:px-3 px-4 py-2 text-sm md:text-base min-h-10 leading-none rounded-md hover:bg-jsr-cyan-100 flex items-center select-none focus:outline-none focus:border-1 focus:border-jsr-cyan-300 focus:ring-1 focus:ring-jsr-cyan-300 focus:ring-opacity-50 ${
54+
class={`md:px-3 px-4 py-2 text-sm md:text-base min-h-10 leading-none rounded-md hover:bg-jsr-cyan-100 flex items-center select-none focus:outline-none focus-visible:outline-1 focus-visible:outline-jsr-cyan-300 focus-visible:outline-offset-0 focus-visible:ring-0 ${
5555
props.active
5656
? "bg-jsr-cyan-50 border-1 border-jsr-cyan-300/30 font-semibold"
5757
: ""

0 commit comments

Comments
 (0)