USWDS - Bug: Alert padding settings not working (theme-alert-padding-x) #5252
Labels
Needs: Confirmation
We need to confirm that this is an issue
Package: Alert
Role: Dev
Development/engineering skills needed
Type: Bug
A problem in the code
Describe the bug
The theme setting
$theme-alert-padding-x
does not have the expected effect of controlling the rendered padding styles of an alert.Steps to reproduce the bug
Observe that the alert body's right padding is only 1rem.
Expected Behavior
The alert is rendered with 4 units (2rem) of horizontal padding, as configured with the example stylesheet's
$theme-alert-padding-x
.Related code
No response
Screenshots
System setup
Additional context
This may have regressed as of #4922, where previously the alert styles incorporated the settings, but no longer did after the changes.
Before:
uswds/packages/usa-alert/src/styles/_usa-alert.scss
Line 42 in c786460
After:
uswds/packages/uswds-core/src/styles/mixins/helpers/alert-status-styles.scss
Line 38 in dae7ad6
Code of Conduct
The text was updated successfully, but these errors were encountered: