Skip to content

Commit

Permalink
fix(tooltip): animation distance custom tokens for desktop/mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
mdt2 committed Nov 7, 2023
1 parent 8ba3aaf commit 08e2112
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions components/tokens/custom-spectrum/custom-large-vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,6 @@ governing permissions and limitations under the License.
--spectrum-assetcard-title-font-size: var(--spectrum-heading-size-xxs);
--spectrum-assetcard-header-content-font-size: var(--spectrum-heading-size-xxs);
--spectrum-assetcard-content-font-size: var(--spectrum-body-size-xs);

--spectrum-tooltip-animation-distance: 5px;
}
2 changes: 2 additions & 0 deletions components/tokens/custom-spectrum/custom-medium-vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,6 @@ governing permissions and limitations under the License.
--spectrum-assetcard-title-font-size: var(--spectrum-heading-size-xs);
--spectrum-assetcard-header-content-font-size: var(--spectrum-heading-size-xs);
--spectrum-assetcard-content-font-size: var(--spectrum-body-size-s);

--spectrum-tooltip-animation-distance: var(--spectrum-spacing-75);
}
3 changes: 0 additions & 3 deletions components/tooltip/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ governing permissions and limitations under the License.
.spectrum-Tooltip {
--spectrum-tooltip-animation-duration: var(--spectrum-animation-duration-100);

/* animation distance is equal to spacing to source */
--spectrum-tooltip-animation-distance: var(--spectrum-spacing-75);

/* override if additional spacing to source is required */
--spectrum-tooltip-margin: 0px;

Expand Down

0 comments on commit 08e2112

Please sign in to comment.