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
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "Adding a longer delay as an option to the tooltip comonent. Before there was only a medium (300ms) or zero (0ms) delay.",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "kysedate@microsoft.com"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
&.hasMediumDelay {
animation-delay: 300ms;
}

&.hasLongDelay {
animation-delay: 500ms;
}
}

.content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class Tooltip extends BaseComponent<ITooltipProps, any> {
AnimationClassNames.fadeIn200,
styles.root,
(delay === TooltipDelay.medium) && styles.hasMediumDelay,
(delay === TooltipDelay.long) && styles.hasLongDelay,
(maxWidth !== null) && { maxWidth: maxWidth },
calloutProps ? calloutProps.className : undefined,
this.props.className
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,6 @@ export interface ITooltipProps extends React.HTMLAttributes<HTMLDivElement | Too

export enum TooltipDelay {
zero = 0,
medium = 1
medium = 1,
long = 2
}