Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-08-10 23:43:58 +0300
committerGitHub <noreply@github.com>2022-08-10 23:43:58 +0300
commit117b6199e5b55eaa266a2d791d15f0c86783c823 (patch)
tree4dba43f253d7465e7e3f8c213042bda86f959be7 /apps
parent684cc097f47d6ca818e71a3f9f0a03e41073a031 (diff)
parent2f6ab453027cf0e67efa72b97c4e6f869683ee37 (diff)
Merge pull request #33282 from nextcloud/enh/a11y-post-comment
Buttonify comment posting
Diffstat (limited to 'apps')
-rw-r--r--apps/comments/src/components/Comment.vue36
1 files changed, 14 insertions, 22 deletions
diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue
index f22754ea201..7949696928c 100644
--- a/apps/comments/src/components/Comment.vue
+++ b/apps/comments/src/components/Comment.vue
@@ -71,13 +71,17 @@
:value="localMessage"
@update:value="updateLocalMessage"
@submit="onSubmit" />
- <input v-tooltip="t('comments', 'Post comment')"
- :class="loading ? 'icon-loading-small' :'icon-confirm'"
- class="comment__submit"
- type="submit"
+ <Button class="comment__submit"
+ type="tertiary-no-background"
+ native-type="submit"
+ :aria-label="t('comments', 'Post comment')"
:disabled="isEmptyMessage"
- value=""
@click="onSubmit">
+ <template #icon>
+ <span v-if="loading" class="icon-loading-small" />
+ <ArrowRight v-else :size="20" />
+ </template>
+ </Button>
</div>
<!-- Message content -->
@@ -99,8 +103,10 @@ import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
import Actions from '@nextcloud/vue/dist/Components/Actions'
import ActionSeparator from '@nextcloud/vue/dist/Components/ActionSeparator'
import Avatar from '@nextcloud/vue/dist/Components/Avatar'
+import Button from '@nextcloud/vue/dist/Components/Button'
import RichContenteditable from '@nextcloud/vue/dist/Components/RichContenteditable'
import RichEditorMixin from '@nextcloud/vue/dist/Mixins/richEditor'
+import ArrowRight from 'vue-material-design-icons/ArrowRight'
import Moment from './Moment'
import CommentMixin from '../mixins/CommentMixin'
@@ -112,7 +118,9 @@ export default {
ActionButton,
Actions,
ActionSeparator,
+ ArrowRight,
Avatar,
+ Button,
Moment,
RichContenteditable,
},
@@ -285,27 +293,11 @@ $comment-padding: 10px;
}
&__submit {
- position: absolute;
+ position: absolute !important;
right: 0;
bottom: 0;
- width: 44px;
- height: 44px;
// Align with input border
margin: 1px;
- cursor: pointer;
- opacity: .7;
- border: none;
- background-color: transparent !important;
-
- &:disabled {
- cursor: not-allowed;
- opacity: .5;
- }
-
- &:focus,
- &:hover {
- opacity: 1;
- }
}
&__message {