diff --git a/package.json b/package.json index 8546eb209..c09844f58 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@openstax/ui-components", - "version": "1.10.3", + "version": "1.10.5", "license": "MIT", "source": "./src/index.ts", "types": "./dist/index.d.ts", diff --git a/src/components/Tooltip.tsx b/src/components/Tooltip.tsx index 509ba5b59..26094dedf 100644 --- a/src/components/Tooltip.tsx +++ b/src/components/Tooltip.tsx @@ -15,7 +15,6 @@ const tooltipStyles = ` /* fixes FF gap */ transform: translate3d(0, 0, 0); position: absolute; - min-width: 24rem; z-index: 1000; &[data-placement=top] { @@ -61,7 +60,7 @@ const tooltipStyles = ` export const StyledTooltip = styled(AriaTooltip)`${tooltipStyles}`; const StyledCustomTooltip = styled.div` - ${tooltipStyles} + ${tooltipStyles} `; export const StyledTrigger = styled(Button)` @@ -78,7 +77,7 @@ type TooltipProps = { isOpen?: boolean; }; -export const Tooltip = ({children, placement, icon, ...props}: React.PropsWithChildren) => +export const Tooltip = ({children, placement, icon, ...props}: React.PropsWithChildren) => @@ -112,4 +111,4 @@ export const CustomTooltip = ({ state, ...props }: any) => { ); -} \ No newline at end of file +} diff --git a/src/components/__snapshots__/Tooltip.spec.tsx.snap b/src/components/__snapshots__/Tooltip.spec.tsx.snap index 7d7c2f9b3..b5df98071 100644 --- a/src/components/__snapshots__/Tooltip.spec.tsx.snap +++ b/src/components/__snapshots__/Tooltip.spec.tsx.snap @@ -76,7 +76,7 @@ Array [ data-overlay-container={true} >