Skip to content

Commit

Permalink
fix primefaces#7301 : use the locale proterty 'aria.close' instead of…
Browse files Browse the repository at this point in the history
… 'close'
  • Loading branch information
kyybo authored Oct 3, 2024
1 parent 67390ea commit 5e9c3a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/dialog/Dialog.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import PrimeReact, { PrimeReactContext, localeOption } from '../api/Api';
import PrimeReact, { PrimeReactContext, ariaLabel } from '../api/Api';
import { useHandleStyle } from '../componentbase/ComponentBase';
import { CSSTransition } from '../csstransition/CSSTransition';
import FocusTrap from '../focustrap/FocusTrap';
Expand Down Expand Up @@ -430,7 +430,7 @@ export const Dialog = React.forwardRef((inProps, ref) => {

const createCloseIcon = () => {
if (props.closable) {
const ariaLabel = props.ariaCloseIconLabel || localeOption('close');
const ariaLabel = props.ariaCloseIconLabel || ariaLabel('close');

const closeButtonIconProps = mergeProps(
{
Expand Down

0 comments on commit 5e9c3a2

Please sign in to comment.