Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shy-plums-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/polaris': patch
---

Updated the animation duration and box-shadow for the `Tooltip`
2 changes: 1 addition & 1 deletion polaris-react/src/components/Tooltip/Tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export function ActivatorAsDiv() {

export function WithSuffix() {
return (
<Box padding="16">
<Box padding="16" background="surface">
<LegacyStack>
<ButtonGroup segmented fullWidth>
<Tooltip content="Bold" suffix="⌘B" activatorWrapper="div">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY
margin: var(--pc-tooltip-overlay-offset) var(--p-space-4) var(--p-space-4);
opacity: 1;
box-shadow: var(--p-shadow-popover);
box-shadow: var(--p-shadow-popover), var(--p-shadow-lg);
// stylelint-disable-next-line -- Polaris component custom properties
border-radius: var(--pc-tooltip-border-radius);
pointer-events: none;
Expand Down Expand Up @@ -48,7 +48,7 @@
}

.measured:not(.instant) {
animation: var(--p-keyframes-appear-below) var(--p-duration-200)
animation: var(--p-keyframes-appear-below) var(--p-duration-50)
var(--p-ease-in) var(--p-duration-100) 1 both;

// stylelint-disable-next-line -- Not a breakpoint
Expand All @@ -58,7 +58,7 @@
}

.measured.positionedAbove:not(.instant) {
animation: var(--p-keyframes-appear-above) var(--p-duration-200)
animation: var(--p-keyframes-appear-above) var(--p-duration-50)
var(--p-ease-in) var(--p-duration-100) 1 both;

// stylelint-disable-next-line -- Not a breakpoint
Expand Down