diff --git a/svelte-app/src/app.scss b/svelte-app/src/app.scss index 0e58e7540..fe8382124 100644 --- a/svelte-app/src/app.scss +++ b/svelte-app/src/app.scss @@ -39,6 +39,12 @@ body { } &:not(.is-loaded) { cursor: wait !important; + + & a, + & button, + & [role='button'] { + cursor: not-allowed !important; + } } &.is-loading { cursor: wait !important; @@ -46,7 +52,7 @@ body { & a, & button, & [role='button'] { - cursor: wait !important; + cursor: not-allowed !important; } } } diff --git a/svelte-app/src/components/document/content/common/summary/heading.svelte b/svelte-app/src/components/document/content/common/summary/heading.svelte index 97bf34f1a..f608e2bea 100644 --- a/svelte-app/src/components/document/content/common/summary/heading.svelte +++ b/svelte-app/src/components/document/content/common/summary/heading.svelte @@ -14,7 +14,7 @@ let expanded = false; - +
import { createEventDispatcher, onDestroy } from 'svelte'; - const dispatch = createEventDispatcher(); - - let target: HTMLElement; - - export let classes = '', - hovered = false, + export let hovered = false, setPointer = true; - const handleHoverIn = () => { - hovered = true; - dispatch('update', { state: true }); - }; - - const handleHoverOut = () => { - hovered = false; - dispatch('update', { state: false }); - }; - - onDestroy(() => { - handleHoverOut(); - }); + const dispatch = createEventDispatcher(), + handleHoverIn = () => { + hovered = true; + dispatch('update', { state: true }); + }, + handleHoverOut = () => { + hovered = false; + dispatch('update', { state: false }); + }; + + onDestroy(handleHoverOut); handleHoverIn()} on:mouseout={() => handleHoverOut()} on:focus={() => (hovered = true)} on:focusin={() => (hovered = true)} on:focusout={() => (hovered = false)} on:blur={() => (hovered = false)} + role="none" > diff --git a/svelte-app/src/components/nav.svelte b/svelte-app/src/components/nav.svelte index 438a0acb2..3d3c412ed 100644 --- a/svelte-app/src/components/nav.svelte +++ b/svelte-app/src/components/nav.svelte @@ -16,7 +16,7 @@
- +