Admin dashboard: button style issues (stats, footer)
jeherve opened this issue · comments
Some of the button styles seem to cause layout oddities in the Jetpack dashboard. Here are some examples:
- When Stats are disabled, go to Jetpack > Settings and search for stats
![Screenshot 2024-05-29 at 11 25 32](https://private-user-images.githubusercontent.com/426388/334741803-7585c24d-027e-4101-af47-2bc4694ebb5b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5Mjc2NDQsIm5iZiI6MTcyMjkyNzM0NCwicGF0aCI6Ii80MjYzODgvMzM0NzQxODAzLTc1ODVjMjRkLTAyN2UtNDEwMS1hZjQ3LTJiYzQ2OTRlYmI1Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwNlQwNjU1NDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMjE1N2NhMDQzMWE2ZDYxZDU4ZGJmNGEwNzA2NGMyZjk1YzgzNzJkYjM2NzNjMjIzZWU0NTEzZjJjMTk1OTdiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.fpd0X7mKFgH_wr5cSRZNT9aZzFz3Qum7W1xuLyrREzM)
- At the bottom of the Settings screen, click on the menu items; when focused, a button pill appears:
Screen.Recording.2024-05-29.at.11.25.11.mov
We may have to update the styles there to avoid such issues.
jetpack/projects/plugins/jetpack/_inc/client/traffic/site-stats.jsx
Lines 210 to 212 in 54d3e86
jetpack/projects/js-packages/components/components/jetpack-footer/index.tsx
Lines 139 to 156 in 4b1333c