mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 19:36:35 +00:00
fix: add click handler and translate skip button
This commit is contained in:
committed by
Gabriel Horner
parent
5a996526ac
commit
f793dbbd5b
@@ -663,10 +663,11 @@
|
||||
:ls-hl-colored ls-block-hl-colored?}])}
|
||||
|
||||
[:button#skip-to-main
|
||||
{:on-key-up (fn [e]
|
||||
(when (= (.-key e) "Enter")
|
||||
(ui/focus-element (ui/main-node))))}
|
||||
"Skip to main content"]
|
||||
{:on-click #(ui/focus-element (ui/main-node))
|
||||
:on-key-up (fn [e]
|
||||
(when (= (.-key e) "Enter")
|
||||
(ui/focus-element (ui/main-node))))}
|
||||
(t :accessibility/skip-to-main-content)]
|
||||
[:div.#app-container
|
||||
[:div#left-container
|
||||
{:class (if (state/sub :ui/sidebar-open?) "overflow-hidden" "w-full")}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
#?(:cljs (:require [shadow.resource :as rc])))
|
||||
|
||||
(def ^:large-vars/data-var dicts
|
||||
{:en {:tutorial/text #?(:cljs (rc/inline "tutorial-en.md")
|
||||
{:en {:accessibility/skip-to-main-content "Skip to main content"
|
||||
:tutorial/text #?(:cljs (rc/inline "tutorial-en.md")
|
||||
:default "tutorial-en.md")
|
||||
:tutorial/dummy-notes #?(:cljs (rc/inline "dummy-notes-en.md")
|
||||
:default "dummy-notes-en.md")
|
||||
|
||||
Reference in New Issue
Block a user