Skip to content

Commit

Permalink
Remove the actionable popover prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Jan 25, 2024
1 parent 553b114 commit e32d424
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ export const breadcrumbsLogic = kea<breadcrumbsLogicType>([
otherOrganizations?.length || preflight?.can_create_org
? {
overlay: <OrganizationSwitcherOverlay />,
actionable: true,
}
: undefined,
})
Expand All @@ -152,7 +151,6 @@ export const breadcrumbsLogic = kea<breadcrumbsLogicType>([
name: currentTeam.name,
popover: {
overlay: <ProjectSwitcherOverlay />,
actionable: true,
},
})
}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/lib/components/HelpButton/HelpButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ export function HelpButton({
onVisibilityChange={(visible) => !visible && hideHelp()}
visible={isHelpVisible}
placement={placement}
actionable
onClickOutside={hideHelp}
>
<div className={clsx('help-button', inline && 'inline')} onClick={toggleHelp} data-attr="help-button">
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/lib/lemon-ui/LemonMenu/LemonMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export interface LemonMenuProps
LemonDropdownProps,
| 'placement'
| 'fallbackPlacements'
| 'actionable'
| 'sameWidth'
| 'maxContentWidth'
| 'visible'
Expand Down Expand Up @@ -265,7 +264,6 @@ const LemonMenuItemButton: FunctionComponent<LemonMenuItemButtonProps & React.Re
items={items}
tooltipPlacement={tooltipPlacement}
placement="right-start"
actionable
closeOnClickInside={custom ? false : true}
closeParentPopoverOnClickInside={custom ? false : true}
>
Expand Down
1 change: 0 additions & 1 deletion frontend/src/lib/lemon-ui/LemonSelect/LemonSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ export function LemonSelect<T extends string | number | boolean | null>({
tooltipPlacement={optionTooltipPlacement}
sameWidth={dropdownMatchSelectWidth}
placement={dropdownPlacement}
actionable
className={menu?.className}
maxContentWidth={dropdownMaxContentWidth}
activeItemIndex={items
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/lib/lemon-ui/Popover/Popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@
left: -0.3rem;
}
}

.Popover--actionable & {
border-color: var(--primary-3000);
}
}

.Popover__content {
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/lib/lemon-ui/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export const Popover = React.forwardRef<HTMLDivElement, PopoverProps>(function P
fallbackPlacements = ['bottom-start', 'bottom-end', 'top-start', 'top-end'],
className,
padded = true,
actionable = false,
middleware,
sameWidth = false,
maxContentWidth = false,
Expand Down Expand Up @@ -226,7 +225,6 @@ export const Popover = React.forwardRef<HTMLDivElement, PopoverProps>(function P
<div
className={clsx(
'Popover',
actionable && 'Popover--actionable',
padded && 'Popover--padded',
maxContentWidth && 'Popover--max-content-width',
!isAttached && 'Popover--top-centered',
Expand Down
1 change: 0 additions & 1 deletion frontend/src/scenes/notebooks/NotebookMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export function NotebookMenu({ shortId }: NotebookLogicProps): JSX.Element {
},
},
]}
actionable
>
<LemonButton aria-label="more" icon={<IconEllipsis />} size="small" />
</LemonMenu>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export function NotebooksTable(): JSX.Element {
},
},
]}
actionable
>
<LemonButton aria-label="more" icon={<IconEllipsis />} size="small" />
</LemonMenu>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2895,7 +2895,7 @@ interface BreadcrumbBase {
/** Symbol, e.g. a lettermark or a profile picture. */
symbol?: React.ReactNode
/** Whether to show a custom popover */
popover?: Pick<PopoverProps, 'overlay' | 'sameWidth' | 'actionable'>
popover?: Pick<PopoverProps, 'overlay' | 'sameWidth'>
}
interface LinkBreadcrumb extends BreadcrumbBase {
/** Path to link to. */
Expand Down

0 comments on commit e32d424

Please sign in to comment.