All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
5.1.6 (2023-12-11)
Note: Version bump only for package @react-md/tooltip
5.1.3 (2022-05-07)
- fix typos throughout codebase (725d1a2)
- typos: fix additional typos throughout repo (ef20132)
5.1.2 (2022-04-02)
Note: Version bump only for package @react-md/tooltip
5.1.0 (2022-03-18)
- @react-md/tooltip: Tooltips stay visible on mobile Firefox (7039fef)
- @react-md/tooltip:
useTooltip
supports new disabled option (a934ae9)
- run lint-scripts --fix for consistent-type-imports (42d839d)
5.0.0 (2022-01-31)
- feat!(utils): Updated the HoverMode API (ac60bdb)
DEFAULT_HOVER_MODE_STICKY_EXIT_TIME
has been renamed toDEFAULT_HOVER_MODE_EXIT_TIME
.- The
exitVisibilityDelay
always defaults toDEFAULT_HOVER_MODE_EXIT_TIME
. - The
useHoverMode
hook no longer accepts anHTMLElement
generic and instead the event handlers will automatically infer theHTMLElement
based on usage. - The
useHoverMode
hook no longer returnsstickyHandlers
and instead returnshoverHandlers
that only includeonMouseEnter
andonMouseLeave
. Thehandlers
that are returned now includeonClick
,onMouseEnter
, andonMouseLeave
. This was kind of what thestickyHandlers
was before. In addition, clicking an element no longer disabled the hover mode behavior. - The following typescript types have been removed:
HoverModeOnlyOptions
,HoverModeOnlyReturnValue
4.0.3 (2021-12-31)
4.0.1 (2021-11-27)
- Updated imports to use
import type
when possible (ba96bb6)
4.0.0 (2021-11-24)
- @react-md/tooltip: cancel timer when element is clicked (5416554)
- Update to use new JSX Transform and latest
eslint
(8111cd3) - @react-md/transition: No longer use findDOMNode for transitions (cb952da)
- Minimum React version is now 16.14 instead of 16.8
- react-md: There will no longer be run-time prop validation with
the
prop-types
package.
3.1.0 (2021-09-10)
- ran
yarn format
to include new files (48d3d7f)
3.0.1 (2021-08-15)
3.0.0 (2021-08-13)
- @react-md/tooltip: removed deprecated props from
Tooltipped
component (6dca9b1) - @react-md/tooltip: removed TooltipHoverModeConfig component (664ec30)
- @react-md/tooltip: Removed
TooltipHoverModeConfig
component - @react-md/tooltip: Removed deprecated props from
Tooltipped
component
2.9.1 (2021-07-27)
- install: slighly reduce install size by excluding tests in publish (9d01a44)
2.9.0 (2021-07-18)
Note: Version bump only for package @react-md/tooltip
2.8.5 (2021-07-03)
Note: Version bump only for package @react-md/tooltip
2.8.4 (2021-06-10)
Note: Version bump only for package @react-md/tooltip
2.8.3 (2021-05-18)
- react-md.dev: updated tsdoc to work with
typedoc
(cf54c35)
2.8.2 (2021-04-23)
Note: Version bump only for package @react-md/tooltip
2.8.0 (2021-04-22)
- @react-md/utils: Click Behavior for Hover Mode (d0fda80)
- @react-md/tooltip: Cleaned up some
useTooltip
code (0a6aed9) - @react-md/tooltip: Updated
Tooltip
to use new Hover Mode (386f47b) - tsconfig: separate tsconfig by package instead of a single root (b278230)
2.7.1 (2021-03-23)
- ts: stopped using FC type (c5daa47)
2.7.0 (2021-02-28)
- tsdoc: fixed remaining tsdoc syntax warnings (946f4dd)
- tsdoc: fixed some tsdoc annotations and styling (0449b86)
- updated test coverage to not include conditional component PropTypes (24e5df1)
2.6.0 (2021-02-13)
Note: Version bump only for package @react-md/tooltip
2.5.5 (2021-01-30)
Note: Version bump only for package @react-md/tooltip
2.5.4 (2021-01-27)
Note: Version bump only for package @react-md/tooltip
2.5.0 (2020-12-15)
Note: Version bump only for package @react-md/tooltip
2.4.2 (2020-10-23)
Note: Version bump only for package @react-md/tooltip
2.4.1 (2020-10-17)
Note: Version bump only for package @react-md/tooltip
2.4.0 (2020-10-17)
- @react-md/theme: Better Contrast Colors by Default and dev-utils refactor (#955) (519b128)
2.3.1 (2020-09-15)
Note: Version bump only for package @react-md/tooltip
2.3.0 (2020-09-10)
Note: Version bump only for package @react-md/tooltip
2.2.2 (2020-09-02)
Note: Version bump only for package @react-md/tooltip
2.2.1 (2020-09-02)
Note: Version bump only for package @react-md/tooltip
2.1.2 (2020-08-01)
Note: Version bump only for package @react-md/tooltip
2.1.1 (2020-07-21)
Note: Version bump only for package @react-md/tooltip
2.1.0 (2020-07-12)
Note: Version bump only for package @react-md/tooltip
2.0.2 (2020-06-30)
- LICENSE: Removed the time range from license since it was incorrect (50c9021)
- Added
sideEffects
field topackage.json
(31820b9) sideEffects
formatting (78a7b6b)
No changes.
Tooltips were completely re-written for the v2 release to help fix the missing
accessibility issues from v1. One of the most "exciting" things that was added
during the re-write is that tooltips will now automatically determine the "best"
location to render itself within the viewport instead of manually needing to
change the position
yourself! Woo hoo!
Starting from v2, you'll probably just want to use the Tooltipped
component as
it'll handle all the functionality of a tooltip for you and ensuring that
correct props are added to the element being tooltipped.
- tooltips now automatically position themselves within the viewport.
- tooltips no longer require being within a
position: relative
container - tooltips now require a unique
id
to help with accessibility concerns and the tooltipped element gains aaria-describedby
pointing to the tooltip's id. - tooltips can now be portalled in the DOM to help with weird overflow issues.
- tooltips now support line wrapping by just enabling the
lineWrap
prop instead of having to write all the custom CSS yourself. - a new "hover mode" behavior was added to tooltips so that once a tooltip has become visible by hover, all other tooltips will become visible immediately instead of needing to wait for the initial show delay.
- the tooltip will have a static size on all browser sizes unless the
dense
prop is enabled or the$rmd-utils-auto-dense
variable is enabled. - tooltips now have a
border-radius
- tooltips no longer have an opacity applied to themselves to create clearer text and will no longer be slightly transparent.
- the text color can now be configured for tooltips
- the majority of the tooltip's theme can be changed with CSS variables
- the
injectTooltip
higher order component was removed - the
TooltipContainer
component was removed
$rmd-toolip-line-height: 1.5rem !default
- The line height to use for the tooltip text.$rmd-tooltip-line-wrap-vertical-padding: 0.5625rem !default
- The amount of padding to apply to the top and bottom of the tooltip when line wrapping is enabled.$rmd-tooltip-border-radius: 0.25rem !default
- The new border radius applied to tooltips$rmd-tooltip-transition-distance: 0.5rem !default
- The distance that the tooltip should animate while appearing and hiding.$rmd-tooltip-color
- The text color to use for tooltips that will automatically be adjusted to be contrast compliant relative to the$rmd-tooltip-background-color
. Can be overridden manually.$rmd-tooltip-max-width: 15rem !default
- The max width to use for tooltips. This is mostly to help with the new line wrapping functionality.$rmd-tooltip-enter-duration: $rmd-transition-standard-time !default
- The tooltip's enter transition duration.$rmd-tooltip-exit-duration: $rmd-transition-standard-time !default
- The tooltip's exit transition duration.$rmd-tooltip-z-index: 100 !default
- Thez-index
to apply to tooltips@function rmd-tooltip-theme
- gets one of the theme values and validates that the theme name is valid@function rmd-tooltip-theme-var
- gets one of the theme values as a css variable with a fallback value and validates that the theme name is valid@mixin rmd-tooltip-theme
- applies one of the theme values to a css property as a css variable@mixin rmd-tooltip-theme-update-var
- updates one of the theme values as a css variable@mixin rmd-tooltip-dense-theme
- updates all the tooltip theme styles via CSS variables to use the dense theme (automatically handled from @react-md/utils if the$rmd-utils-auto-dense
variable has been enabled).
$md-tooltip-mobile-font-size
was renamed to$rmd-tooltip-font-size
and changed the default value from14px
to1rem
$md-tooltip-mobile-tile-height
was renamed to$rmd-tooltip-min-height
and changed the default value from32px
to2rem
$md-tooltip-mobile-lr-padding
was renamed to$rmd-tooltip-horizontal-padding
and changed the default value from16px
to1rem
$md-tooltip-mobile-top-margin
was renamed to$md-tooltip-spacing
and changed the default value from24px
to1.5rem
$md-tooltip-desktop-font-size
was renamed to$rmd-tooltip-dense-font-size
and changed the default value from10px
to0.625rem
$md-tooltip-desktop-tile-height
was renamed to$rmd-tooltip-dense-min-height
and changed the default value from22px
to1.375rem
$md-tooltip-desktop-lr-padding
was renamed to$rmd-tooltip-dense-horizontal-padding
and changed the default value from8px
to0.5rem
$md-tooltip-desktop-top-margin
was renamed to$md-tooltip-dense-spacing
and changed the default value from14px
to0.875rem
$md-tooltip-mobile-tb-padding
was removed since there is new line wrap functionality and variables$md-tooltip-desktop-tb-padding
was removed since there is new line wrap functionality and variables