generated from cloudoperators/repository-template
    
        
        - 
                Notifications
    
You must be signed in to change notification settings  - Fork 1
 
Labels
packageAll tasks related to package under packages/All tasks related to package under packages/ui-componentsAll tasks related to juno-ui-components libraryAll tasks related to juno-ui-components library
Description
🐞 Bug Report
Description
Original Bug Report: #165
- The 
Modalcomponent is experiencing alignment issues whenReactNodeis passed to thetitleandheadingprops. - Instead of aligning to the left as for 
string, content is aligned to the right. - Additionally, the recent TypeScript migration has restricted these props strictly to 
string, causing TypeScript errors. - This is a regression introduced by recent changes to the component's prop types and styling.
 
Steps to Reproduce
- Pass a 
stringas thetitleandheadingtoModal. - Observe the alignment, which correctly aligns to the left.
 - Pass a 
ReactNodeto thetitleandheading. - Observe the misalignment where content shifts to the right and a TypeScript error occurs.
 
Expected Behaviour
- The 
Modalcomponent should acceptReactNodetype fortitleandheading, eliminating TypeScript errors. - Alignment of 
titleandheadingshould consistently be to the left, regardless of prop type. 
Environment
- OS: macOS
 - Browser: Chrome
 
🔧 Solution
Acceptance Criteria
- Modify the type for title and heading props to support ReactNode.
 - Ensure content alignment is consistently to the left.
 
Technical Notes
- The misalignment occurs due to automatic alignment logic with 
jn-justify-endwhenReactNodelacks alengthattribute. 
Labels
- 🐞 Regression: Yes
 - ⭐ Priority: Medium
 - ⏳ Effort: Low
 - 📈 Status: Backlog
 
Metadata
Metadata
Assignees
Labels
packageAll tasks related to package under packages/All tasks related to package under packages/ui-componentsAll tasks related to juno-ui-components libraryAll tasks related to juno-ui-components library
Type
Projects
Status
New