chore: update help button style (#1656)

This commit is contained in:
boojack
2023-05-13 22:52:06 +08:00
committed by GitHub
parent 96021e518a
commit 921d4b996d
4 changed files with 15 additions and 15 deletions

View File

@ -174,7 +174,7 @@ const HelpButton = (props: HelpProps): JSX.Element => {
const { t } = useTranslation();
const color = props.color ?? "neutral";
const variant = props.variant ?? "plain";
const className = props.className ?? "!-mt-1";
const className = props.className ?? "";
const hintPlacement = props.hintPlacement ?? "top";
const iconButtonSize = "sm";
@ -232,12 +232,12 @@ const HelpButton = (props: HelpProps): JSX.Element => {
const sizePx = (() => {
switch (props.size) {
case "sm":
return 16;
return 14;
case "lg":
return 48;
return 18;
case "md":
default:
return 24;
return 16;
}
})();