Skip to content

Commit

Permalink
#5428 for messages
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Nov 28, 2023
1 parent 9e88918 commit af5451a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions components/doc/messages/accessibilitydoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import Link from 'next/link';

export function AccessibilityDoc() {
return (
<DevelopmentSection>
<DocSectionText id="accessibility" label="Accessibility">
<h3>Screen Reader</h3>
<p>
Expand Down Expand Up @@ -44,6 +43,5 @@ export function AccessibilityDoc() {
</table>
</div>
</DocSectionText>
</DevelopmentSection>
);
}
6 changes: 4 additions & 2 deletions components/lib/messages/UIMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ export const UIMessage = React.memo(

const buttonIconProps = mergeProps(
{
className: cx('uimessage.buttonicon'),
'aria-hidden': true
className: cx('uimessage.buttonicon')
},
getPTOptions('buttonicon', parentParams),
ptmo(pt, 'buttonicon', { ...params, hostName: props.hostName })
Expand Down Expand Up @@ -167,6 +166,9 @@ export const UIMessage = React.memo(
ref,
className: classNames(_className, cx('uimessage.root', { severity })),
style,
role: 'alert',
'aria-live': 'assertive',
'aria-atomic': 'true',
onClick
},
getPTOptions('root', parentParams),
Expand Down

0 comments on commit af5451a

Please sign in to comment.