Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: misc Button implementations not using isIconButton prop #37382

Merged
merged 10 commits into from
Nov 14, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function CodeBlock({ code }: CodeBlockProps) {
}}
>
<Code>{code}</Code>
<Button kind="tertiary" startIcon="copy-control" />
<Button isIconButton kind="tertiary" startIcon="copy-control" />
</Wrapper>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1710,6 +1710,7 @@ class CodeEditor extends Component<Props, State> {
"commands-button invisible",
!showSlashCommandButton && "!hidden",
)}
isIconButton
kind="tertiary"
onClick={() => {
const newValue =
Expand Down
2 changes: 2 additions & 0 deletions app/client/src/pages/AppViewer/Navigation/TopStacked.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export function TopStacked(props: NavigationProps) {
{tabsScrollable && (
<ScrollBtnContainer
className="left-0 scroll-arrows"
isIconButton
kind="tertiary"
onMouseDown={() => startScrolling(true)}
onMouseLeave={stopScrolling}
Expand Down Expand Up @@ -153,6 +154,7 @@ export function TopStacked(props: NavigationProps) {
{tabsScrollable && (
<ScrollBtnContainer
className="right-0 scroll-arrows"
isIconButton
kind="tertiary"
onMouseDown={() => startScrolling(false)}
onMouseLeave={stopScrolling}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ export default function HelpDropdown(props: DebuggerLog) {
return (
<Popover>
<PopoverTrigger>
<Button kind="tertiary" size="sm" startIcon="question-line" />
<Button
isIconButton
kind="tertiary"
size="sm"
startIcon="question-line"
/>
</PopoverTrigger>
<PopoverContent className={styles.consoleItemHelpContent}>
<List
Expand Down
Loading