Skip to content

Commit

Permalink
Merge branch 'main' into table-checkbox-focus-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmacknz authored Sep 1, 2023
2 parents c866056 + a8c5121 commit 1011766
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/famous-toes-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@kaizen/date-picker": minor
"@kaizen/draft-form": minor
---

add margin top to input and button to match labels from other components
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
}
}

.input {
margin-top: $spacing-6;
}

$input-disabled-opacity: 0.3;

///////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const TextField = ({
id={`${id}-field-input`}
automationId={`${id}-field-input`}
ariaDescribedBy={ariaDescribedBy}
classNameOverride={styles.input}
disabled={disabled}
reversed={reversed}
status={status}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ $placeholder-opacity: 0.7;
background-clip: padding-box;
border: $border-solid-border-width $border-solid-border-style $color-gray-500;
border-radius: $border-solid-border-radius;
margin-top: $spacing-6;
padding: 0 $button-base-padding-horizontal;

&:focus-visible:not([disabled]),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@import "~@kaizen/design-tokens/sass/spacing";

.dateInput {
width: 100%;
}

.input {
margin-top: $spacing-6;
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const DateInput = React.forwardRef<HTMLInputElement, DateInputProps>(
inputRef={isRefObject(ref) ? ref : undefined}
id={id}
autoComplete="off"
classNameOverride={styles.input}
disabled={disabled}
reversed={isReversed}
{...inputProps}
Expand Down

0 comments on commit 1011766

Please sign in to comment.