Skip to content

Commit

Permalink
Default Button text to empty string (#1883)
Browse files Browse the repository at this point in the history
refactor: default Button text to empty string
  • Loading branch information
jordankoschei-okta committed Jul 21, 2023
1 parent 274abfe commit 51e6ce5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/odyssey-react-mui/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const Button = ({
onClick,
size = "medium",
startIcon,
text,
text = "",
tooltipText,
variant,
}: ButtonProps) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export const IconOnly: StoryObj<ButtonProps> = {
args: {
startIcon: <AddIcon />,
ariaLabel: "Add crew",
text: "",
text: undefined,
tooltipText: "Add crew",
},
};

0 comments on commit 51e6ce5

Please sign in to comment.