Skip to content

Commit

Permalink
chore(3000): Buttons 3000 (#18534)
Browse files Browse the repository at this point in the history
  • Loading branch information
corywatilo authored Nov 16, 2023
1 parent ff67436 commit fb3af1c
Show file tree
Hide file tree
Showing 25 changed files with 730 additions and 297 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/__snapshots__/scenes-app-saved-insights--card-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions frontend/src/layout/navigation-3000/Navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@

.LemonButton {
min-height: 2.25rem !important; // Reduce minimum height
padding: 0.375rem !important; // Use a custom padding for the navbar only

> span {
padding: 0.25rem !important;
}

.LemonButton__content {
font-size: 0.813rem;
}
}

ul {
Expand All @@ -64,7 +71,7 @@
}

li + li {
margin-top: 1px;
margin-top: 0.25rem;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const NavbarButton: FunctionComponent<NavbarButtonProps> = React.forwardR
if (tag === 'alpha') {
content = (
<>
{content}
<span className="grow">{content}</span>
<LemonTag type="completion" size="small" className="ml-2">
ALPHA
</LemonTag>
Expand All @@ -54,7 +54,7 @@ export const NavbarButton: FunctionComponent<NavbarButtonProps> = React.forwardR
} else if (tag === 'beta') {
content = (
<>
{content}
<span className="grow">{content}</span>
<LemonTag type="warning" size="small" className="ml-2">
BETA
</LemonTag>
Expand All @@ -75,6 +75,8 @@ export const NavbarButton: FunctionComponent<NavbarButtonProps> = React.forwardR
}}
className={clsx('NavbarButton', isUsingNewNav && here && 'NavbarButton--here')}
fullWidth
type="secondary"
stealth={true}
{...buttonProps}
>
{content}
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/layout/navigation-3000/sidepanel/SidePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ export function SidePanel(): JSX.Element | null {
}
data-attr={`sidepanel-tab-${tab}`}
active={activeTab === tab}
type="secondary"
stealth={true}
>
{label}
</LemonButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ export function FilterBasedCardContent({
<BindLogic logic={dataNodeLogic} props={dataNodeLogicProps}>
<div
className="InsightCard__viz"
// eslint-disable-next-line react/forbid-dom-props
onClick={
setAreDetailsShown
? () => {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/lib/components/Cards/TextCard/TextCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ interface TextCardBodyProps extends Pick<React.HTMLAttributes<HTMLDivElement>, '

export function TextContent({ text, closeDetails, className }: TextCardBodyProps): JSX.Element {
return (
// eslint-disable-next-line react/forbid-dom-props
<div className={clsx('p-2 w-full overflow-auto', className)} onClick={() => closeDetails?.()}>
<LemonMarkdown>{text}</LemonMarkdown>
</div>
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/lib/components/TaxonomicFilter/InfiniteList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
&.hover {
background-color: var(--primary-bg-hover);
border-radius: var(--radius);

.posthog-3000 & {
background-color: var(--bg-3000);
}
}

&.selected {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
display: flex;
flex-direction: column;

.posthog-3000 & {
background: var(--bg-3000);
}

&.force-minimum-width {
min-width: 300px;
}
Expand Down
Loading

0 comments on commit fb3af1c

Please sign in to comment.