Closed Mottie closed 1 month ago
This will get fixed when we adopt the USWDS Alert component, which is imminent. It does not set a width. It also solves for the excessive padding at mobile viewport widths. It does not use flexbox but, it doesn't use table for display either.
@caw310 I think we can close this ticket now
Bug Report
What happened
During a QA review, an indented alert box was found to extend off screen in both IE11 and mobile devices (ticket).
While troubleshooting, I found that the culprit is the
usa-alert
definition (source code):The
width: 100%
setting is causing the alert to overflow beyond its wrapper boundary.Screenshots from QA ticket
![](https://user-images.githubusercontent.com/587583/98744215-8f26ee00-236e-11eb-9183-21d2b70b0039.png) ![](https://user-images.githubusercontent.com/587583/98748807-acac8580-2377-11eb-84dc-6b563645784e.png)What I expected to happen
Alert box width should not extend beyond viewport
Expected alert box size
![](https://user-images.githubusercontent.com/587583/98744437-f04ec180-236e-11eb-879a-cb795dd20e96.png)Reproducing
vetsgov+test236@id.me
Steps to reproduce:
vetsgov+test236@id.me
(Charde). [See this doc for credentials.]Possible Fix
width
or setting its value toauto
will fix the problemdisplay: table