Skip to content

Commit

Permalink
fix: button line-height
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Aug 21, 2024
1 parent 348148f commit b77c289
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const DefaultButton = ({
// Button does not support these attributes, so we skip them
autocomplete: _ignoredAutocomplete,
label: _ignoredLabel,
node_type: _ignoredNodeType,
// End of skipped attributes
...rest
} = attributes
Expand Down Expand Up @@ -54,7 +55,7 @@ export const DefaultButton = ({
className={cn(
// TODO: Difficult to resolve merge conflict here. Please ensure this is correct:
// "relative antialiased rounded border gap-3 leading-none transition-colors ease-linear duration-100 px-4 py-4.5 text-sm font-medium",
"antialiased rounded-border-radius-buttons border border-transparent gap-3 leading-none bg-button-primary-bg-default hover:bg-button-primary-bg-hover transition-colors text-button-primary-fg-default hover:text-button-primary-fg-hover px-4 py-4.5 text-sm font-medium",
"antialiased rounded-border-radius-buttons border border-transparent gap-3 bg-button-primary-bg-default hover:bg-button-primary-bg-hover transition-colors text-button-primary-fg-default hover:text-button-primary-fg-hover px-4 py-4.5 text-sm leading-none font-medium",
{
"cursor-not-allowed": isSubmitting,
"bg-button-primary-bg-hover": isSubmitting,
Expand All @@ -69,7 +70,7 @@ export const DefaultButton = ({
{isSubmitting ? <Spinner /> : null}
<span
className={cn(
"transition-colors ease-linear duration-100 leading-3 text-button-primary-fg-default/20",
"transition-colors ease-linear duration-100 leading-none text-button-primary-fg-default/20",
{
"text-button-primary-fg-default opacity-20 transition-opacity":
isSubmitting && isPrimary,
Expand Down

0 comments on commit b77c289

Please sign in to comment.