Skip to content

Commit

Permalink
fix(back-to-top): reconfigure pointer events to be on the trigger not…
Browse files Browse the repository at this point in the history
… host
  • Loading branch information
zeroedin committed Sep 18, 2024
1 parent 111b17c commit 7750668
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_includes/partials/component/back-to-top.njk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<style>
rh-back-to-top {
display: flex;
pointer-events: all;
pointer-events: none;
position: sticky;
justify-content: flex-end;
width: 100%;
Expand Down
1 change: 1 addition & 0 deletions elements/rh-back-to-top/rh-back-to-top.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
line-height: var(--rh-line-height-body-text, 1.5);
outline: var(--rh-border-width-md, 2px) solid transparent;
border: var(--rh-border-width-md, 2px) solid transparent;
pointer-events: all;
}

[part='trigger']:is(:hover, :focus) {
Expand Down

0 comments on commit 7750668

Please sign in to comment.