Skip to content
Snippets Groups Projects
Commit 09171d0a authored by Eric Eastwood's avatar Eric Eastwood
Browse files

Fix link togglers jumping to top

parent edf29b57
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -18,7 +18,7 @@
// Button does not change visibility. If button has icon - it changes chevron style.
//
// %div.js-toggle-container
// %a.js-toggle-button
// %button.js-toggle-button
// %div.js-toggle-content
//
$('body').on('click', '.js-toggle-button', function() {
Loading
Loading
Loading
Loading
@@ -101,6 +101,7 @@ $gl-text-green: #4a2;
$gl-text-red: #d12f19;
$gl-text-orange: #d90;
$gl-link-color: #3777b0;
$gl-link-hover-color: darken($gl-link-color, 15%);
$gl-grayish-blue: #7f8fa4;
$gl-gray: $gl-text-color;
$gl-gray-dark: #313236;
Loading
Loading
Loading
Loading
@@ -431,6 +431,24 @@
border-bottom: none;
}
 
.diff-stats-summary-toggler {
padding: 0;
background-color: transparent;
border: 0;
color: $gl-link-color;
transition: color 0.1s linear;
&:hover,
&:focus {
outline: none;
text-decoration: underline;
color: $gl-link-hover-color;
}
}
// Mobile
@media (max-width: 480px) {
.diff-title {
Loading
Loading
Loading
Loading
@@ -60,7 +60,17 @@
}
 
.modify-merge-commit-link {
padding: 0;
background-color: transparent;
border: 0;
color: $gl-text-color;
&:hover,
&:focus {
text-decoration: underline;
}
}
 
.merge-param-checkbox {
Loading
Loading
Loading
Loading
@@ -426,9 +426,20 @@ ul.notes {
}
 
.discussion-toggle-button {
padding: 0;
background-color: transparent;
border: 0;
line-height: 20px;
font-size: 13px;
 
&:hover,
&:focus {
text-decoration: underline;
outline: none;
}
.fa {
margin-right: 3px;
font-size: 10px;
Loading
Loading
Loading
Loading
@@ -8,7 +8,7 @@
.discussion.js-toggle-container{ class: discussion.id, data: { discussion_id: discussion.id } }
.discussion-header
.discussion-actions
= link_to "#", class: "note-action-button discussion-toggle-button js-toggle-button" do
%button.note-action-button.discussion-toggle-button.js-toggle-button
- if expanded
= icon("chevron-up")
- else
Loading
Loading
Loading
Loading
@@ -24,7 +24,7 @@
.visible-xs-inline
= render_commit_status(commit, ref: ref)
- if commit.description?
%a.text-expander.hidden-xs.js-toggle-button ...
%button.text-expander.hidden-xs.js-toggle-button ...
 
- if commit.description?
%pre.commit-row-description.js-toggle-content
Loading
Loading
.js-toggle-container
.commit-stat-summary
Showing
= link_to '#', class: 'js-toggle-button' do
%button.diff-stats-summary-toggler.js-toggle-button
%strong= pluralize(diff_files.size, "changed file")
with
%strong.cgreen #{diff_files.sum(&:added_lines)} additions
Loading
Loading
Loading
Loading
@@ -37,7 +37,7 @@
= check_box_tag :should_remove_source_branch
Remove source branch
.accept-control
= link_to "#", class: "modify-merge-commit-link js-toggle-button" do
%button.modify-merge-commit-link.js-toggle-button
= icon('edit')
Modify commit message
.js-toggle-content.hide.prepend-top-default
Loading
Loading
Loading
Loading
@@ -75,7 +75,7 @@
Gitea
%div
- if git_import_enabled?
= link_to "#", class: 'btn js-toggle-button import_git' do
%button.btn.js-toggle-button.import_git
= icon('git', text: 'Repo by URL')
.import_gitlab_project
- if gitlab_project_import_enabled?
Loading
Loading
---
title: Update toggle buttons to be <button>
merge_request:
author:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment