Commit ecb99c84 authored by Justin Ho's avatar Justin Ho Committed by David O'Regan

Left align buttons in design management

We need to use gl-w-auto! since there is width: 100%
coming in from styles in .note-form-actions. Ideally we
should refactor that and remove the utils used here.
parent 26e0ec73
...@@ -115,11 +115,11 @@ export default { ...@@ -115,11 +115,11 @@ export default {
</template> </template>
</markdown-field> </markdown-field>
<slot name="resolve-checkbox"></slot> <slot name="resolve-checkbox"></slot>
<div class="note-form-actions gl-display-flex gl-justify-content-space-between"> <div class="note-form-actions gl-display-flex">
<gl-button <gl-button
ref="submitButton" ref="submitButton"
:disabled="!hasValue || isSaving" :disabled="!hasValue || isSaving"
class="gl-mr-3" class="gl-mr-3 gl-w-auto!"
category="primary" category="primary"
variant="confirm" variant="confirm"
type="submit" type="submit"
...@@ -129,9 +129,14 @@ export default { ...@@ -129,9 +129,14 @@ export default {
> >
{{ buttonText }} {{ buttonText }}
</gl-button> </gl-button>
<gl-button ref="cancelButton" variant="default" category="primary" @click="cancelComment">{{ <gl-button
__('Cancel') ref="cancelButton"
}}</gl-button> class="gl-w-auto!"
variant="default"
category="primary"
@click="cancelComment"
>{{ __('Cancel') }}</gl-button
>
</div> </div>
<gl-modal <gl-modal
ref="cancelCommentModal" ref="cancelCommentModal"
......
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Design reply form component renders button text as "Comment" when creating a comment 1`] = ` exports[`Design reply form component renders button text as "Comment" when creating a comment 1`] = `
"<button data-track-event=\\"click_button\\" data-qa-selector=\\"save_comment_button\\" type=\\"submit\\" disabled=\\"disabled\\" class=\\"btn gl-mr-3 btn-confirm btn-md disabled gl-button\\"> "<button data-track-event=\\"click_button\\" data-qa-selector=\\"save_comment_button\\" type=\\"submit\\" disabled=\\"disabled\\" class=\\"btn gl-mr-3 gl-w-auto! btn-confirm btn-md disabled gl-button\\">
<!----> <!---->
<!----> <span class=\\"gl-button-text\\"> <!----> <span class=\\"gl-button-text\\">
Comment Comment
...@@ -9,7 +9,7 @@ exports[`Design reply form component renders button text as "Comment" when creat ...@@ -9,7 +9,7 @@ exports[`Design reply form component renders button text as "Comment" when creat
`; `;
exports[`Design reply form component renders button text as "Save comment" when creating a comment 1`] = ` exports[`Design reply form component renders button text as "Save comment" when creating a comment 1`] = `
"<button data-track-event=\\"click_button\\" data-qa-selector=\\"save_comment_button\\" type=\\"submit\\" disabled=\\"disabled\\" class=\\"btn gl-mr-3 btn-confirm btn-md disabled gl-button\\"> "<button data-track-event=\\"click_button\\" data-qa-selector=\\"save_comment_button\\" type=\\"submit\\" disabled=\\"disabled\\" class=\\"btn gl-mr-3 gl-w-auto! btn-confirm btn-md disabled gl-button\\">
<!----> <!---->
<!----> <span class=\\"gl-button-text\\"> <!----> <span class=\\"gl-button-text\\">
Save comment Save comment
......
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