Skip to content

Dashboard Stats card: Footer buttons markup fix#15090

Merged
jeherve merged 1 commit intomasterfrom
fix/dashboard-stats-card-buttons
Mar 24, 2020
Merged

Dashboard Stats card: Footer buttons markup fix#15090
jeherve merged 1 commit intomasterfrom
fix/dashboard-stats-card-buttons

Conversation

@sergeymitr
Copy link
Copy Markdown
Contributor

The buttons overflow each other on certain window sizes.

When the card gets too narrow, the 'Activate brute force...' button doesn't fit into the 50% width of the card dedicated to it.

The problem was reported internally, no GitHub issue was created.

Changes proposed in this Pull Request:

I adjusted the styles so the button would be able to overflow beyond 50% of the card, and if the two buttons do not fit, one of them gets pushed down to the next line.

Testing instructions:

  1. Install Jetpack, initialize the connection (free plan is fine).
  2. Open the "Jetpack Settings -> Security": /wp-admin/admin.php?page=jetpack#/settings and turn off "Brute force attack protection"
  3. Go to the WordPress Admin Dashboard and find the card "Stats by Jetpack": /wp-admin/index.php
  4. Experiment with the window width and see that the button "Activate brute force attack protection" occasionally becomes too long and goes under the "Anti-spam" section.
    Example width to reproduce (Firefox, new ephemeral website): 1900px, 1550px, 1000px, anything under 570px.

The card with the issue present:
jetpack-brute-force-button

The card footer after the fix:
jetpack-brute-force-button-fixed

Proposed changelog entry for your changes:

No entry necessary.

The buttons overflow each other on certain window sizes. When the card gets too narrow, the 'Activate brute force...' button doesn't fit into the 50% width of the card dedicated to it.
I adjusted the styles so the button would be able to overflow beyond 50% of the card, and if the two buttons do not fit, one of them gets pushed down to the next line.
@sergeymitr sergeymitr added Bug When a feature is broken and / or not performing as intended [Status] Needs Review This PR is ready for review. Admin Page React-powered dashboard under the Jetpack menu labels Mar 23, 2020
@sergeymitr sergeymitr requested a review from a team March 23, 2020 19:03
@sergeymitr sergeymitr self-assigned this Mar 23, 2020
@jetpackbot
Copy link
Copy Markdown
Collaborator

Thank you for the great PR description!

When this PR is ready for review, please apply the [Status] Needs Review label. If you are an a11n, please have someone from your team review the code if possible. The Jetpack team will also review this PR and merge it to be included in the next Jetpack release.

Scheduled Jetpack release: April 7, 2020.
Scheduled code freeze: March 31, 2020

Generated by 🚫 dangerJS against ff56710

@pidgeonman pidgeonman requested review from robertf4 and removed request for robertf4 March 24, 2020 04:24
@jeherve jeherve added this to the 8.4 milestone Mar 24, 2020
@jeherve jeherve added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review This PR is ready for review. labels Mar 24, 2020
Copy link
Copy Markdown
Member

@jeherve jeherve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good in my tests. Merging!

@jeherve jeherve merged commit 735f08a into master Mar 24, 2020
@jeherve jeherve deleted the fix/dashboard-stats-card-buttons branch March 24, 2020 14:35
@matticbot matticbot added [Status] Needs Changelog and removed [Status] Ready to Merge Go ahead, you can push that green button! labels Mar 24, 2020
@jeherve jeherve added [Feature] Stats Data Feature that enables users to track their site's traffic and gain insights on popular content. and removed Admin Page React-powered dashboard under the Jetpack menu labels Mar 27, 2020
jeherve added a commit that referenced this pull request Mar 31, 2020
jeherve added a commit that referenced this pull request Mar 31, 2020
* Initial changelog entry

* Changelog: add #14904

* Changelog: add #14910

* Changelog: add #14913

* Changelog: add #14916

* Changelog: add #14922

* Changelog: add #14924

* Changelog: add #14925

* Changelog: add #14928

* Changelog: add #14840

* Changelog: add #14841

* Changelog: add #14842

* Changelog: add #14826

* Changelog: add #14835

* Changelog: add #14859

* Changelog: add #14884

* Changelog: add #14888

* Changelog: add #14817

* Changelog: add #14814

* Changelog: add #14819

* Changelog;: add #14797

* Changelog: add #14798

* Changelog: add #14802

* Changelog: add #13676

* Changelog: add #13744

* Changelog: add #13777

* Changelog: add #14446

* Changelog: add #14739

* Changelog: add #14770

* Changelog: add #14784

* Changelog: add #14897

* Changelog: add #14898

* Changelog: add #14968

* Changelog: add #14985

* Changelog: add #15044

* Changelog: add #15052

* Update to remove Podcast since it remains in Beta

* Changelog: add #14803

* Changelog: add #15028

* Changelog: add #15065

* Changelog:add #14886

* Changelog: add #15118

* Changelog: add #14990

* Changelog: add #14528

* Changelog: add #15120

* Changelog: add #15126

* Changelog: add #15049

* Chanegelog: add #14852

* Changelog: add #15090

* Changelog: add #15138

* Changelog: add #15124

* Changelog:add #15055

* Changelog: add #15017

* Changelog: add #15109

* Changelog: add #15145

* Changelog:add #15096

* Changelog:add #15153

* Changelog: add #15133

* Changelog: add #14960

* Changelog: add #15127

* Changelog: add #15056

* Copy current changelog to changelog archive.

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

Labels

Bug When a feature is broken and / or not performing as intended [Feature] Stats Data Feature that enables users to track their site's traffic and gain insights on popular content.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants