@@ -364,9 +364,12 @@ export default {
364364 </span >
365365
366366 <!-- right(in LTR) or left(in RTL) arrow icon when there is a sub-menu -->
367- <ChevronRightIcon v-if =" isMenu && !isRtl" :size =" 20" class =" action-button__menu-icon" />
368- <ChevronLeftIcon v-else-if =" isMenu && isRtl" :size =" 20" class =" action-button__menu-icon" />
369- <CheckIcon v-else-if =" isChecked === true" :size =" 20" class =" action-button__pressed-icon" />
367+ <NcIconSvgWrapper v-if =" isMenu"
368+ class =" action-button__menu-icon"
369+ directional
370+ :path =" mdiChevronRight" />
371+ <NcIconSvgWrapper v-else-if =" isChecked" :path =" mdiCheck" class =" action-button__pressed-icon" />
372+
370373 <span v-else-if =" isChecked === false" class =" action-button__pressed-icon material-design-icon" />
371374
372375 <!-- fake slot to gather inner text -->
@@ -376,12 +379,10 @@ export default {
376379</template >
377380
378381<script >
379- import CheckIcon from ' vue-material-design-icons/Check.vue'
380- import ChevronRightIcon from ' vue-material-design-icons/ChevronRight.vue'
381- import ChevronLeftIcon from ' vue-material-design-icons/ChevronLeft.vue'
382- import ActionTextMixin from ' ../../mixins/actionText.js'
383- import { isRtl } from ' ../../utils/rtl.ts'
382+ import { mdiCheck , mdiChevronRight } from ' @mdi/js'
384383import { NC_ACTIONS_IS_SEMANTIC_MENU } from ' ../NcActions/useNcActions.ts'
384+ import ActionTextMixin from ' ../../mixins/actionText.js'
385+ import NcIconSvgWrapper from ' ../NcIconSvgWrapper/NcIconSvgWrapper.vue'
385386
386387/**
387388 * Button component to be used in Actions
@@ -390,9 +391,7 @@ export default {
390391 name: ' NcActionButton' ,
391392
392393 components: {
393- CheckIcon,
394- ChevronRightIcon,
395- ChevronLeftIcon,
394+ NcIconSvgWrapper,
396395 },
397396
398397 mixins: [ActionTextMixin],
@@ -471,7 +470,8 @@ export default {
471470
472471 setup () {
473472 return {
474- isRtl,
473+ mdiCheck,
474+ mdiChevronRight,
475475 }
476476 },
477477
0 commit comments