Skip to content

Commit

Permalink
Add tooltip component vertical-align as a sensible default
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinksi committed Sep 21, 2023
1 parent 0b768b3 commit 6a55603
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions client/components/tooltip/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
transition: all 0.3s ease;
fill: currentColor;
margin: 0 0.4em;
vertical-align: text-bottom;

&:focus,
&:hover,
Expand Down
8 changes: 2 additions & 6 deletions client/payment-details/dispute-details/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,8 @@
border-bottom: 1px solid $wp-gray-5;
}

.wcpay-tooltip__content-wrapper.wcpay-tooltip--click__content-wrapper
> .wcpay-tooltip__content-wrapper
> [role='button'] {
margin-left: 0;
margin-right: 0;
vertical-align: text-bottom;
.wcpay-tooltip__content-wrapper > [role='button'] {
margin: 0;
}

&__response-date {
Expand Down

0 comments on commit 6a55603

Please sign in to comment.