Skip to content

Commit

Permalink
fix aria-label
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh committed Jun 21, 2024
1 parent dfdd5ac commit 49092af
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import type { IRoom } from '@rocket.chat/core-typings';
import { Callout } from '@rocket.chat/fuselage';
import { useTranslation } from '@rocket.chat/ui-contexts';
import React from 'react';

import { usePruneWarningMessage } from '../../hooks/usePruneWarningMessage';

const RetentionPolicyCallout = ({ room }: { room: IRoom }) => {
const message = usePruneWarningMessage(room);
const t = useTranslation();

return (
<Callout arial-label={message} role='alert' aria-live='polite' type='warning'>
<Callout arial-label={t('Retention_policy_warning_callout')} role='alert' aria-live='polite' type='warning'>
<div>
<p>{message}</p>
</div>
Expand Down

0 comments on commit 49092af

Please sign in to comment.