Fix buttons widths from BassCSS to USWDS migration#4869
Conversation
Method:
Candidates:
For most all of these, it's questionable whether the buttons should collapse to a flexible width on mobile. All the same, I'll check each of them. |
Candidates: |
**Why**: Button should occupy full width at smaller viewport widths
**Why**: Unused, and doesn't match desired visual style
ac131ce to
3ea4bfb
Compare
Not necessary after changing to render unstyled buttons as inline
**Why**: As per purpose of inline styling, should inherit appearance of a link and not occupy 100% width from usa-button base styles
Unstyled buttons are intended to take the appearance of a link. Links don't need those styles
**Why**: Unstyled buttons override margin and take precedent over USWDS margin utility classes. Emulate by adding padding to the container instead
|
Thank you SO much for this! Everything looks great 👍 |
See: #4836
Why:
Status:
Currently in document capture, this is a problem resolved by applyingThis was changed to render unstyled buttons aswidth-autoutility class to the unstyled button.display: inline;by default.Currently in document capture, this is a problem resolved by using a wrapping element to apply paddingEdit: Updated all instances of unstyled buttons applying margin by applying an equivalent padding to its parent container element instead.Screenshot: