Commit 8c080874 authored by Miguel Rincon's avatar Miguel Rincon

Merge branch 'issue-detail-view-deprecated-button' into 'master'

Remove deprecated button classes from issue detail view

See merge request gitlab-org/gitlab!57763
parents a75c29cf 50165bfa
...@@ -25,7 +25,6 @@ export default { ...@@ -25,7 +25,6 @@ export default {
}, },
actionPrimary: { actionPrimary: {
text: __('Yes, close issue'), text: __('Yes, close issue'),
attributes: [{ variant: 'warning' }],
}, },
i18n: { i18n: {
promoteErrorMessage: __( promoteErrorMessage: __(
...@@ -220,7 +219,6 @@ export default { ...@@ -220,7 +219,6 @@ export default {
<gl-button <gl-button
v-if="showToggleIssueStateButton" v-if="showToggleIssueStateButton"
class="gl-display-none gl-sm-display-inline-flex!" class="gl-display-none gl-sm-display-inline-flex!"
category="secondary"
:data-qa-selector="qaSelector" :data-qa-selector="qaSelector"
:loading="isToggleStateButtonLoading" :loading="isToggleStateButtonLoading"
@click="toggleIssueState" @click="toggleIssueState"
......
...@@ -336,7 +336,7 @@ export default { ...@@ -336,7 +336,7 @@ export default {
icon="pencil" icon="pencil"
size="small" size="small"
category="tertiary" category="tertiary"
class="note-action-button js-note-edit btn btn-transparent" class="note-action-button js-note-edit"
data-qa-selector="note_edit_button" data-qa-selector="note_edit_button"
@click="onEdit" @click="onEdit"
/> />
...@@ -348,7 +348,7 @@ export default { ...@@ -348,7 +348,7 @@ export default {
size="small" size="small"
icon="remove" icon="remove"
category="tertiary" category="tertiary"
class="note-action-button js-note-delete btn btn-transparent" class="note-action-button js-note-delete"
@click="onDelete" @click="onDelete"
/> />
<div v-else-if="shouldShowActionsDropdown" class="dropdown more-actions"> <div v-else-if="shouldShowActionsDropdown" class="dropdown more-actions">
...@@ -359,7 +359,7 @@ export default { ...@@ -359,7 +359,7 @@ export default {
icon="ellipsis_v" icon="ellipsis_v"
size="small" size="small"
category="tertiary" category="tertiary"
class="note-action-button more-actions-toggle btn btn-transparent" class="note-action-button more-actions-toggle"
data-toggle="dropdown" data-toggle="dropdown"
@click="closeTooltip" @click="closeTooltip"
/> />
......
...@@ -424,7 +424,7 @@ export default { ...@@ -424,7 +424,7 @@ export default {
<gl-button <gl-button
:disabled="isDisabled" :disabled="isDisabled"
category="primary" category="primary"
variant="success" variant="confirm"
data-qa-selector="reply_comment_button" data-qa-selector="reply_comment_button"
class="gl-mr-3 js-vue-issue-save js-comment-button" class="gl-mr-3 js-vue-issue-save js-comment-button"
@click="handleUpdate()" @click="handleUpdate()"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
%input.btn.gl-button.btn-confirm.js-comment-button.js-comment-submit-button{ type: 'submit', value: _('Comment'), data: { qa_selector: 'comment_button' } } %input.btn.gl-button.btn-confirm.js-comment-button.js-comment-submit-button{ type: 'submit', value: _('Comment'), data: { qa_selector: 'comment_button' } }
- if @note.can_be_discussion_note? - if @note.can_be_discussion_note?
= button_tag type: 'button', class: 'gl-button btn dropdown-toggle btn-confirm btn-icon js-note-new-discussion js-disable-on-submit', data: { 'dropdown-trigger' => '#resolvable-comment-menu' }, 'aria-label' => _('Open comment type dropdown') do = button_tag type: 'button', class: 'gl-button btn dropdown-toggle btn-confirm js-note-new-discussion js-disable-on-submit', data: { 'dropdown-trigger' => '#resolvable-comment-menu' }, 'aria-label' => _('Open comment type dropdown') do
= sprite_icon('chevron-down') = sprite_icon('chevron-down')
%ul#resolvable-comment-menu.dropdown-menu.dropdown-open-top{ data: { dropdown: true } } %ul#resolvable-comment-menu.dropdown-menu.dropdown-open-top{ data: { dropdown: true } }
......
---
title: Remove deprecated button classes from issue detail view
merge_request: 57763
author:
type: changed
...@@ -173,7 +173,7 @@ RSpec.describe 'Merge request > User posts notes', :js do ...@@ -173,7 +173,7 @@ RSpec.describe 'Merge request > User posts notes', :js do
it 'allows using markdown buttons after saving a note and then trying to edit it again' do it 'allows using markdown buttons after saving a note and then trying to edit it again' do
page.within('.current-note-edit-form') do page.within('.current-note-edit-form') do
fill_in 'note[note]', with: 'This is the new content' fill_in 'note[note]', with: 'This is the new content'
find('.btn-success').click find('.btn-confirm').click
end end
find('.note').hover find('.note').hover
...@@ -191,7 +191,7 @@ RSpec.describe 'Merge request > User posts notes', :js do ...@@ -191,7 +191,7 @@ RSpec.describe 'Merge request > User posts notes', :js do
it 'appends the edited at time to the note' do it 'appends the edited at time to the note' do
page.within('.current-note-edit-form') do page.within('.current-note-edit-form') do
fill_in 'note[note]', with: 'Some new content' fill_in 'note[note]', with: 'Some new content'
find('.btn-success').click find('.btn-confirm').click
end end
page.within("#note_#{note.id}") do page.within("#note_#{note.id}") do
......
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