Skip to content
Snippets Groups Projects
Unverified Commit e3ece28f authored by Kyle Doherty's avatar Kyle Doherty Committed by GitHub
Browse files

TextArea polish + story (#28040)

parent 5905215b
Branches
Tags
No related merge requests found
import React from "react";
import type { ComponentStory } from "@storybook/react";
import TextArea from "./TextArea";
export default {
title: "Core/Text Area",
component: TextArea,
};
const Template: ComponentStory<typeof TextArea> = args => {
return <TextArea {...args} />;
};
export const Default = Template.bind({});
import styled from "@emotion/styled";
import { css } from "@emotion/react";
import { color } from "metabase/lib/colors";
import { focusOutlineStyle } from "metabase/core/style/input";
export interface TextAreaRootProps {
readOnly?: boolean;
......@@ -25,6 +26,9 @@ export const TextAreaRoot = styled.textarea<TextAreaRootProps>`
border-color: ${() => color("brand")};
transition: border 300ms ease-in-out;
}
${css`
${focusOutlineStyle("brand")}
`};
${props =>
props.hasError &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment