Skip to content

Commit

Permalink
Refactor #3270
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Nov 17, 2022
1 parent c4063ff commit acb4a42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/scrolltop/ScrollTop.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<transition name="p-scrolltop" appear @enter="onEnter" @after-leave="onAfterLeave">
<button v-if="visible" :ref="containerRef" :class="containerClass" @click="onClick" type="button" :aria-label="$primevue.config.locale.aria.scrollTop">
<button v-if="visible" :ref="containerRef" :class="containerClass" @click="onClick" type="button" :aria-label="scrollTopAriaLabel">
<span :class="iconClass"></span>
</button>
</transition>
Expand Down Expand Up @@ -104,6 +104,9 @@ export default {
},
iconClass() {
return ['p-scrolltop-icon', this.icon];
},
scrollTopAriaLabel() {
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.scrollTop : undefined;
}
}
};
Expand Down

0 comments on commit acb4a42

Please sign in to comment.