Use Vanilla JS instead of jQuery as there is initiative in core to remove jQuery

Issue fork scrollup-3325272

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vknikolov created an issue. See original summary.

vknikolov’s picture

StatusFileSize
new5.52 KB
vknikolov’s picture

StatusFileSize
new5.31 KB
vknikolov’s picture

show label on 2 rows

vknikolov’s picture

Title: Rewrite scrollup to Vanila JS » Rewrite scrollup to use Vanila JS
StatusFileSize
new5.28 KB

LTR/RTL support

vknikolov’s picture

StatusFileSize
new5.31 KB

Fix once check

vladimiraus’s picture

Version: 3.0.0 » 3.0.x-dev
Assigned: vknikolov » Unassigned
Status: Active » Needs work

Latest patch no longer apply.

vladimiraus’s picture

Issue summary: View changes
Status: Needs work » Needs review
jannakha’s picture

Status: Needs review » Needs work

- set default value for scroll_title in case it's empty
- title should not be hardcoded: `title="scroll_title"`
- you can use Template literals, `title=${scroll_title}`
- use semantic HTML, eg <a><span>...</span></a> (not <a><div>...</div></a>

vladimiraus’s picture

Status: Needs work » Needs review

Thank you for review! 🧁
Updated.

jannakha’s picture

Status: Needs review » Reviewed & tested by the community

this MR is good to go.

  • VladimirAus committed 6ff48c92 on 3.0.x
    Issue #3325272 by VladimirAus, vknikolov, jannakha: Rewrite scrollup to...
vladimiraus’s picture

Status: Reviewed & tested by the community » Fixed

Thank you! Committed! 🥂

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.