mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
refactor(tooltip): style prop merged with the passed one (#1413)
This commit is contained in:
parent
6d7372ede1
commit
f068552774
6
.changeset/little-comics-report.md
Normal file
6
.changeset/little-comics-report.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@nextui-org/tooltip": patch
|
||||
"@nextui-org/modal": patch
|
||||
---
|
||||
|
||||
Tooltip style prop merged, this allows users change the z-index
|
||||
@ -109,7 +109,7 @@ export function useModal(originalProps: UseModalProps) {
|
||||
const headerId = useId();
|
||||
const bodyId = useId();
|
||||
|
||||
// Sync ref with popoverRef from passed ref.
|
||||
// Sync ref with modalRef from passed ref.
|
||||
useImperativeHandle(ref, () =>
|
||||
// @ts-ignore
|
||||
createDOMRef(dialogRef),
|
||||
|
||||
@ -219,7 +219,8 @@ export function useTooltip(originalProps: UseTooltipProps) {
|
||||
"data-disabled": dataAttr(isDisabled),
|
||||
"data-placement": getArrowPlacement(placement, placementProp),
|
||||
className: slots.base({class: baseStyles}),
|
||||
...mergeProps(tooltipProps, positionProps, overlayProps, otherProps),
|
||||
...mergeProps(tooltipProps, overlayProps, otherProps),
|
||||
style: mergeProps(positionProps.style, otherProps.style, props.style),
|
||||
id: tooltipId,
|
||||
}),
|
||||
[
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user