-
Notifications
You must be signed in to change notification settings - Fork 78
Fix prompt title overlap with close button #6017
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Storybook 8 URL https://60c7ae6891f0e90039d7cd54-uivbeuzrnu.chromatic.com/ |
@azure/communication-react jest test coverage for stable.
|
@azure/communication-react jest test coverage for beta.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes an accessibility issue where the prompt component's heading text could overlap with the close button in the top-right corner. The fix adds right padding and text wrapping to ensure proper spacing and display.
- Added
paddingRight: '2rem'to create space for the close button - Added
wordWrap: 'break-word'to wrap long heading text onto multiple lines
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/react-composites/src/composites/CallComposite/components/Prompt.tsx | Added inline styles for right padding and word wrapping to the heading Text component to prevent overlap with the close button |
| change/@azure-communication-react-e4ff9a18-4445-451e-88ed-1c21be5b7163.json | Added changelog entry documenting the patch fix for the A11y workstream |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
packages/react-composites/src/composites/CallComposite/components/Prompt.tsx
Outdated
Show resolved
Hide resolved
…nts/Prompt.tsx Co-authored-by: Copilot <[email protected]> Signed-off-by: mgamis-msft <[email protected]>
📦 CallWithChat bundle size
Total change: +62 B |
📦 Calling bundle size
Total change: +62 B |
📦 Chat bundle size
Total change: -32 B ⬇️ |
|
Storybook 8 URL https://60c7ae6891f0e90039d7cd54-brcpbldhzz.chromatic.com/ |
What
Added right padding and wrapping text for Prompt title
Why
https://skype.visualstudio.com/SPOOL/_workitems/edit/4310934
How Tested
Tested locally

Process & policy checklist
Is this a breaking change?