Skip to content

Commit

Permalink
Applying panel title hover properties to the revisions panel too.
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellr committed Sep 21, 2018
1 parent ff2edeb commit b023a78
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions packages/components/src/panel/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,20 @@
margin-top: 0;
margin-bottom: 0;
transition: 0.1s background ease-in-out;

&:hover {
background: $light-gray-100;

.components-button,
.components-panel__arrow {
color: $dark-gray-900;
}
}
}
.components-panel__body.is-opened > .components-panel__body-title {
margin: -1 * $panel-padding;
margin-bottom: 5px;
}

// Hover States
.components-panel__body:not(.is-opened) > .components-panel__body-title:hover,
.edit-post-last-revision__panel > .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover {
background: $light-gray-100;

&:hover {
background: transparent;
.components-button,
.components-panel__arrow {
color: $dark-gray-900;
}
}

Expand Down

0 comments on commit b023a78

Please sign in to comment.