Skip to content

Commit bc9bed8

Browse files
mgamis-msftCopilot
andauthored
Fix prompt title overlap with close button (#6017)
* Fix title potentially overlapping with close button on prompt component * Change files * Update packages/react-composites/src/composites/CallComposite/components/Prompt.tsx Co-authored-by: Copilot <[email protected]> Signed-off-by: mgamis-msft <[email protected]> --------- Signed-off-by: mgamis-msft <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 2f7f309 commit bc9bed8

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "A11y",
5+
"comment": "Fix title potentially overlapping with close button on prompt component",
6+
"packageName": "@azure/communication-react",
7+
"email": "[email protected]",
8+
"dependentChangeType": "patch"
9+
}

packages/react-composites/src/composites/CallComposite/components/Prompt.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,16 @@ export const Prompt = (props: PromptProps): JSX.Element => {
4343
return (
4444
<Modal styles={styles} isOpen={props.isOpen} onDismiss={props.onDismiss} isBlocking={false}>
4545
<Stack className={mergeStyles({ position: 'relative' })}>
46-
<Text className={mergeStyles({ fontWeight: 600, fontSize: '1.25rem' })}>{props.heading}</Text>
46+
<Text
47+
className={mergeStyles({
48+
fontWeight: 600,
49+
fontSize: '1.25rem',
50+
paddingRight: '2rem',
51+
overflowWrap: 'break-word'
52+
})}
53+
>
54+
{props.heading}
55+
</Text>
4756
<IconButton
4857
styles={iconButtonStyles(theme)}
4958
iconProps={{ iconName: 'Cancel' }}

0 commit comments

Comments
 (0)