Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.

Home Page:https://jetpack.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
  • 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.

Button: (
<Button rna className="jp-link-button" onClick={ this.activateStats } />
),

// ==========================================================================
// Buttons
// ==========================================================================
.dops-button {

<li key={ item.label }>
<a
href={ item.href }
title={ item.title }
target={ item.target }
onClick={ item.onClick }
onKeyDown={ item.onKeyDown }
className={ classnames( 'jp-dashboard-footer__menu-item', {
'is-external': isExternalLink,
} ) }
role={ item.role }
rel={ isExternalLink ? 'noopener noreferrer' : undefined }
tabIndex={ isButton ? 0 : undefined }
>
{ item.label }
{ isExternalLink && <ExternalIcon /> }
</a>
</li>

&:focus {
border-radius: 2px;
box-shadow: none;
outline: 1.5px solid currentColor;
outline-offset: 3px;
}