@@ -82,7 +82,8 @@ export default {
8282 <!-- allow the custom font to inject a ::before
8383 not possible on input[type=submit] -->
8484 <label v-show =" !disabled" :for =" id" class =" action-text-editable__label" >
85- <ArrowRight :size =" 20" />
85+ <ArrowLeft v-if =" isRTL" :size =" 20" />
86+ <ArrowRight v-else :size =" 20" />
8687 </label >
8788 </form >
8889 </span >
@@ -94,12 +95,16 @@ import { useModelMigration } from '../../composables/useModelMigration.ts'
9495import ActionTextMixin from ' ../../mixins/actionText.js'
9596import GenRandomId from ' ../../utils/GenRandomId.js'
9697
98+ import ArrowLeft from ' vue-material-design-icons/ArrowLeft.vue'
9799import ArrowRight from ' vue-material-design-icons/ArrowRight.vue'
98100
101+ import { isRTL } from ' @nextcloud/l10n'
102+
99103export default {
100104 name: ' NcActionTextEditable' ,
101105
102106 components: {
107+ ArrowLeft,
103108 ArrowRight,
104109 },
105110
@@ -165,6 +170,7 @@ export default {
165170 const model = useModelMigration (' value' , ' update:value' )
166171 return {
167172 model,
173+ isRTL: isRTL (),
168174 }
169175 },
170176
@@ -276,16 +282,18 @@ $input-margin: 4px;
276282
277283 position : relative ;
278284 margin : $input-margin 0 ;
279- padding-right : $icon-margin ;
285+ padding-inline-end : $icon-margin ;
280286 }
281287
282288 & __submit {
283289 position : absolute ;
284- left : -10000 px ;
290+ inset-inline-start : 0 ;
285291 top : auto ;
286292 width : 1px ;
287293 height : 1px ;
288294 overflow : hidden ;
295+ z-index : -1 ;
296+ opacity : 0 ;
289297 }
290298
291299 & __label {
@@ -295,7 +303,7 @@ $input-margin: 4px;
295303
296304 // bottom-right corner
297305 position : absolute ;
298- right : calc ($icon-margin + 1 );
306+ inset-inline-end : calc ($icon-margin + 1 px );
299307 bottom : 1px ;
300308 width : calc (var (--default-clickable-area ) - $input-margin * 2 );
301309 height : calc (var (--default-clickable-area ) - $input-margin * 2 );
@@ -356,7 +364,7 @@ $input-margin: 4px;
356364 z-index : 2 ;
357365
358366 border-color : var (--color-primary-element );
359- border-left -color : transparent ;
367+ border-inline-start -color : transparent ;
360368 }
361369 }
362370 }
0 commit comments