Skip to content

Commit

Permalink
Visual fixes for button migration issues (#5363)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpople authored Oct 9, 2024
1 parent 86bb3f7 commit 3699023
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
AntButton as Button,
ArrowDownLineIcon,
Box,
ButtonProps,
Flex,
Input,
InputGroup,
Expand Down Expand Up @@ -69,10 +68,6 @@ type SelectDropdownProps = {
* Disable the control
*/
disabled?: boolean;
/**
* Menu button props
*/
menuButtonProps?: ButtonProps;
};

type UseConnectionListDropDown = {
Expand Down Expand Up @@ -139,7 +134,6 @@ const ConnectionListDropdown = ({
hasClear = true,
label,
list,
menuButtonProps,
onChange,
selectedValue,
}: SelectDropdownProps) => {
Expand Down Expand Up @@ -199,19 +193,12 @@ const ConnectionListDropdown = ({
>
<MenuButton
aria-label={selectedText ?? label}
as={Button}
color={selectedText ? "complimentary.500" : undefined}
disabled={disabled}
fontWeight="normal"
rightIcon={<ArrowDownLineIcon />}
size="sm"
variant="outline"
_active={{
bg: "none",
}}
_hover={{
bg: "none",
}}
{...menuButtonProps}
icon={<ArrowDownLineIcon />}
iconPosition="end"
className="!bg-transparent hover:bg-transparent active:bg-transparent"
data-testid="select-dropdown-btn"
width="272px"
textAlign="left"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export const ConnectorParametersForm = ({
return (
<Form noValidate>
<VStack align="stretch" gap="16px">
<div>
<div className="flex flex-row">
{connectionConfig ? (
<DisableConnectionModal
connection_key={connectionConfig?.key}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const TaxonomyFormBase = ({
</Text>
) : null}

<div>
<div className="flex gap-4">
<Button data-testid="cancel-btn" onClick={onCancel}>
Cancel
</Button>
Expand Down

0 comments on commit 3699023

Please sign in to comment.