From 25723059d387acb489548272a9ae4f1ecbd1558a Mon Sep 17 00:00:00 2001 From: toshusai Date: Fri, 31 May 2024 12:35:17 +0900 Subject: [PATCH] feat: change styled to css --- .../__snapshots__/index.story.storyshot | 83 +- .../__snapshots__/TextArea.story.storyshot | 926 +++--------------- .../react/src/components/TextArea/index.css | 73 ++ .../react/src/components/TextArea/index.tsx | 123 +-- 4 files changed, 243 insertions(+), 962 deletions(-) create mode 100644 packages/react/src/components/TextArea/index.css diff --git a/packages/react/src/components/DropdownSelector/__snapshots__/index.story.storyshot b/packages/react/src/components/DropdownSelector/__snapshots__/index.story.storyshot index 53253567e..24b47a3b3 100644 --- a/packages/react/src/components/DropdownSelector/__snapshots__/index.story.storyshot +++ b/packages/react/src/components/DropdownSelector/__snapshots__/index.story.storyshot @@ -1069,73 +1069,6 @@ exports[`Storybook Tests DropdownSelector InModal 1`] = ` color: var(--charcoal-text2); } -.c4 { - display: grid; - grid-template-columns: 1fr; - grid-gap: 4px; -} - -.c5 { - position: relative; - overflow: hidden; - color: var(--charcoal-text2); - background-color: var(--charcoal-surface3); - border-radius: 4px; - -webkit-transition: 0.2s background-color,0.2s box-shadow; - transition: 0.2s background-color,0.2s box-shadow; - height: calc(22px * 4 + 18px); -} - -.c5:not([aria-disabled]):hover, -.c5 [aria-disabled='false']:hover { - background-color: var(--charcoal-surface3-hover); -} - -.c5:focus-within { - outline: none; - box-shadow: 0 0 0 4px rgba(0,150,250,0.32); -} - -.c6 { - border: none; - outline: none; - resize: none; - font-family: inherit; - color: inherit; - box-sizing: border-box; - -webkit-transform-origin: top left; - -ms-transform-origin: top left; - transform-origin: top left; - -webkit-transform: scale(0.875); - -ms-transform: scale(0.875); - transform: scale(0.875); - width: calc(100% / 0.875); - font-size: calc(14px / 0.875); - line-height: calc(22px / 0.875); - padding: calc(9px / 0.875) calc(8px / 0.875); - height: calc(22px / 0.875 * 4 + 20px); - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background: none; -} - -.c6::-webkit-input-placeholder { - color: var(--charcoal-text3); -} - -.c6::-moz-placeholder { - color: var(--charcoal-text3); -} - -.c6:-ms-input-placeholder { - color: var(--charcoal-text3); -} - -.c6::placeholder { - color: var(--charcoal-text3); -} -
@@ -1331,7 +1264,8 @@ exports[`Storybook Tests DropdownSelector InModal 1`] = `