Skip to content

Remove ineffective invalid CSS#9478

Merged
aduth merged 1 commit intomainfrom
aduth-rm-invalid-css
Oct 30, 2023
Merged

Remove ineffective invalid CSS#9478
aduth merged 1 commit intomainfrom
aduth-rm-invalid-css

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Oct 30, 2023

🛠 Summary of changes

Removes two styles which would have no effect, due to invalid combinations.

I came aware of these with automated validation tools in Chrome and VSCode.

Screenshot 2023-10-30 at 8 43 39 AM

Screenshot 2023-10-30 at 8 43 57 AM

I couldn't easily run an audit over all CSS with Chrome's validator (though I did find the source). Running VSCode's validator over the compiled CSS did reveal another upstream issue in USWDS, tracked at uswds/uswds#5587 .

📜 Testing Plan

Verify no regressions in appearance of unstyled buttons and success-bullet lists.

changelog: Internal, Performance, Optimize size of application stylesheets
@aduth aduth merged commit a35a63b into main Oct 30, 2023
@aduth aduth deleted the aduth-rm-invalid-css branch October 30, 2023 14:08
@amirbey amirbey mentioned this pull request Oct 31, 2023
@aduth
Copy link
Contributor Author

aduth commented Nov 21, 2023

So I think despite what the Chrome DevTools claims, the width here does have an effect, and this caused a regression in some screens causing some unexpected line breaks. I'll open a fix pull request shortly.

Edit: See #9632

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants