Skip to content
Snippets Groups Projects

Fix link togglers jumping to top

Merged username-removed-892863 requested to merge 29414-fix-toggle-discussion-link-jump into master
All threads resolved!

What does this MR do?

  • Update .js-toggle-button to be actual button tags

Using <button> is semantically more accurate for the usage and we don't need the previous e.preventDefault() unless inside a <form>

Are there points in the code the reviewer needs to double check?

Togglers to check:

Why was this MR needed?

  • We used a tags with empty fragment href="#" which would jump you to the top of the page when clicked

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #29414 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Hover is different to what we currently have in prod

    Screen_Shot_2017-03-14_at_08.45.41

  • username-removed-892863 resolved all discussions

    resolved all discussions

  • added 1 commit

    • 0e41b10f - 1 commit from branch master

    Compare with previous version

  • added 33 commits

    Compare with previous version

  • I think the button refactor is doing too much for something post-feature-freeze. Maybe we should just fix the current regression for 9.0 and address the refactor for 9.1.

  • Can you address the comment from @rspeicher?

  • changed milestone to %9.1

  • username-removed-892863 removed ~149423 label

    removed ~149423 label

  • @rspeicher @iamphill I created https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9943 which includes just enough to fix the issue for 9.0.

    We can merge this <button> refactor in 9.1

    Edited by username-removed-892863
  • username-removed-892863 resolved all discussions

    resolved all discussions

  • mentioned in merge request !9943 (merged)

  • username-removed-892863 marked the task All builds are passing as completed

    marked the task All builds are passing as completed

  • @fatihacet Friendly ping for review (not critical) :grinning:

  • @fatihacet Timeline for review?

  • added 427 commits

    Compare with previous version

  • mentioned in commit d4c8e847

  • mentioned in merge request !10126 (merged)

  • @MadLittleMods build failed.

    @jschatz1 can you review this for me?

  • added 360 commits

    Compare with previous version

  • Jacob Schatz approved this merge request

    approved this merge request

  • merged

  • Jacob Schatz mentioned in commit 01b5d885

    mentioned in commit 01b5d885

  • Please register or sign in to reply
    Loading