Fixed #4553 - Image: toolbar unstyled mode fixes

pull/4570/head
Tuğçe Küçükoğlu 2023-10-05 10:08:28 +03:00
parent b6467d3c6f
commit 6b097a40d7
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@
</button>
<Portal>
<div v-if="maskVisible" :ref="maskRef" v-focustrap role="dialog" :class="cx('mask')" :aria-modal="maskVisible" @click="onMaskClick" @keydown="onMaskKeydown" v-bind="ptm('mask')">
<div class="p-image-toolbar" v-bind="ptm('toolbar')">
<div :class="cx('toolbar')" v-bind="ptm('toolbar')">
<button :class="cx('rotateRightButton')" @click="rotateRight" type="button" :aria-label="rightAriaLabel" v-bind="ptm('rotateRightButton')" data-pc-group-section="action">
<slot name="refresh">
<RefreshIcon v-bind="ptm('rotateRightIcon')" />

View File

@ -79,6 +79,7 @@ const classes = {
button: 'p-image-preview-indicator',
icon: 'p-image-preview-icon',
mask: 'p-image-mask p-component-overlay p-component-overlay-enter',
toolbar: 'p-image-toolbar',
rotateRightButton: 'p-image-action p-link',
rotateLeftButton: 'p-image-action p-link',
zoomOutButton: ({ instance }) => [