diff --git a/.changeset/wise-suns-serve.md b/.changeset/wise-suns-serve.md new file mode 100644 index 0000000000..e208741aab --- /dev/null +++ b/.changeset/wise-suns-serve.md @@ -0,0 +1,6 @@ +--- +"@twilio-paste/input": patch +"@twilio-paste/core": patch +--- + +[Input] updated focus stylings on increment/decrement buttons for number input type on both default and inverse variants diff --git a/packages/paste-core/components/input/src/DecrementButton.tsx b/packages/paste-core/components/input/src/DecrementButton.tsx index 50b53e6e8c..2391091844 100644 --- a/packages/paste-core/components/input/src/DecrementButton.tsx +++ b/packages/paste-core/components/input/src/DecrementButton.tsx @@ -4,15 +4,18 @@ import { ChevronDownIcon } from "@twilio-paste/icons/esm/ChevronDownIcon"; import type { HTMLPasteProps } from "@twilio-paste/types"; import * as React from "react"; +import { InputVariants } from "./Input"; + export interface DecrementButtonProps extends HTMLPasteProps<"button"> { i18nStepDownLabel?: string; element?: BoxProps["element"]; // Button component restricts tabIndex values tabIndex?: ButtonProps["tabIndex"]; + variant?: InputVariants; } export const DecrementButton = React.forwardRef( - ({ i18nStepDownLabel = "step value down", element, ...props }, ref) => { + ({ i18nStepDownLabel = "step value down", element, variant, ...props }, ref) => { return (