Skip to content

Commit

Permalink
fix(definitiontooltip): update alignment options to match popover (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
tay1orjones authored Jun 12, 2024
1 parent 87d4cb5 commit f715af5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
8 changes: 8 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,14 @@ Map {
"right",
"right-bottom",
"right-top",
"top-start",
"top-end",
"bottom-start",
"bottom-end",
"left-end",
"left-start",
"right-end",
"right-start",
],
],
"type": "oneOf",
Expand Down
26 changes: 18 additions & 8 deletions packages/react/src/components/Tooltip/DefinitionTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,30 @@ DefinitionTooltip.propTypes = {
*/
align: PropTypes.oneOf([
'top',
'top-left',
'top-right',
'top-left', // deprecated use top-start instead
'top-right', // deprecated use top-end instead

'bottom',
'bottom-left',
'bottom-right',
'bottom-left', // deprecated use bottom-start instead
'bottom-right', // deprecated use bottom-end instead

'left',
'left-bottom',
'left-top',
'left-bottom', // deprecated use left-end instead
'left-top', // deprecated use left-start instead

'right',
'right-bottom',
'right-top',
'right-bottom', // deprecated use right-end instead
'right-top', // deprecated use right-start instead

// new values to match floating-ui
'top-start',
'top-end',
'bottom-start',
'bottom-end',
'left-end',
'left-start',
'right-end',
'right-start',
]),

/**
Expand Down

0 comments on commit f715af5

Please sign in to comment.