Commit f8e5887d authored by Scott Hampton's avatar Scott Hampton

Merge branch 'btn-default-toggle-comment' into 'master'

Update to btn-default and selected class in toggle comment button

See merge request gitlab-org/gitlab!56090
parents f0a8f78e 9517fdb9
......@@ -272,7 +272,7 @@ document.addEventListener('DOMContentLoaded', () => {
e.preventDefault();
$this.toggleClass('active');
$this.toggleClass('selected');
if ($this.hasClass('active')) {
notesHolders.show().find('.hide, .content').show();
......
......@@ -17,7 +17,7 @@
.file-actions.d-none.d-sm-block
- if diff_file.blob&.readable_text?
%span.has-tooltip{ title: _("Toggle comments for this file") }
= link_to '#', class: 'js-toggle-diff-comments btn gl-button active', disabled: @diff_notes_disabled do
= link_to '#', class: 'js-toggle-diff-comments btn gl-button btn-default selected', disabled: @diff_notes_disabled do
= sprite_icon('comment')
\
- if editable_diff?(diff_file)
......
---
title: Move to btn-default and selected class in toggle comment button
merge_request: 56090
author: Yogi (@yo)
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment