Alert component does not wrap content when there is not enough space to display it all faceup within a container
See original GitHub issueBug Report
Description
This issue can be seen with the following code:
<div style={{width: '50px'}}>
<Alert type="alert" title="TEST" />
</div>
The text, “TEST” is clipped off out of view when rendered within this div.
Steps to Reproduce
- Set width on container that doesnt allow for full width of Alert to be displayed
- Add alert component to it that overflows the width of the parent
Additional Context / Screenshots
Screenshot of expected alert
Screenshot of buggy alert Text is clipped out of view
Expected Behavior
The terra alert component handles text wrapping / content overflow appropriately when placed within a container with a set width.
Environment
- Component Name and Version: terra-alert
@ Mentions
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Flex-wrap is not wrapping when I reduce the window size
But note, they won't wrap based on your re-sizing of the browser window, because the container doesn't occupy width: 100% of the viewport....
Read more >Elementor Flex Wrap & No Wrap Explained!!! - YouTube
Get Elementor PRO: https://jimfahaddigital.com/e-pro ✓ Get Domain & Webhosting(50% off): https://jimfahaddigital.com/hosting … Show more.
Read more >Departmental Deposit Procedures Texas A&M University
Do not wrap the coin. o Indicate amount of coin on the “coin” line on the deposit slip o Write this total in...
Read more >- DIRTY BOMBS AND BASEMENT NUKES: THE TERRORIST ...
The committee met, pursuant to notice, at 9:30 a.m. in room SD-419, Dirksen Senate Office Building ... There is no reason why they...
Read more >SureColor T-Series User's Guide - Epson
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in ... Read all of these instructions before...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m removing the
bug
label since displaying the alert at such a small width is not the intended or expected use case and such edge case should be resolved by other means.This issue has been automatically marked as inactive because it has not had recent activity. It will be closed in seven days if no further activity occurs. Thank you for your contributions.