A few CSS selectors for styling the WP components are not scoped and affect some pages other than this extension #5703
Labels
category: core
WC Payments core related issues, where it’s obvious.
focus: misc or unknown
Issues that need to be added to a focus area (aka "needs focus").
good first issue
The issue is a good candidate for the first community contribution/for a newcomer to the team.
priority: low
The issue/PR is low priority—not many people are affected or there’s a workaround, etc.
type: bug
The issue is a confirmed bug.
Describe the bug
Other React-powered pages in WC admin are affected by some CSS styles in WooCommerce Payments.
To Reproduce
/wp-admin/admin.php?page=wc-admin&path=%2Fanalytics%2Foverview
..components-card
CSS class.margin-bottom
style of the DOM is affected by WooCommerce Payments.Actual behavior
A few CSS styles of WooCommerce Payments affect some pages other than this extension.
Screenshots
Expected behavior
The CSS styles of WooCommerce Payments should only apply to its pages.
Desktop:
Smartphone:
I didn't test with smartphone phones but I believe this issue happens in all environments.
Additional context
Styles are not scoped:
Affected extensions:
The text was updated successfully, but these errors were encountered: