Skip to content

Commit

Permalink
[joy-ui][Textarea] Fix focus ring for error state (mui#39391)
Browse files Browse the repository at this point in the history
  • Loading branch information
vineetjk authored Oct 11, 2023
1 parent d8c41cb commit abe61bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/mui-joy/src/Textarea/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ const Textarea = React.forwardRef(function Textarea(inProps, ref) {
const color = inProps.color ?? (error ? 'danger' : formControl?.color ?? colorProp);

const ownerState = {
instanceColor: error ? 'danger' : inProps.color,
...props,
color,
disabled,
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Textarea/TextareaProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,5 @@ export interface TextareaOwnerState extends ApplyColorInversion<TextareaProps> {
/**
* @internal
*/
instanceColor?: OverridableStringUnion<ColorPaletteProp, TextareaPropsColorOverrides>;
instanceColor: OverridableStringUnion<ColorPaletteProp, TextareaPropsColorOverrides> | undefined;
}

0 comments on commit abe61bf

Please sign in to comment.