diff --git a/packages/react/src/components/TextArea/__snapshots__/TextArea.story.storyshot b/packages/react/src/components/TextArea/__snapshots__/TextArea.story.storyshot index bd6a51397..2d33ac9e2 100644 --- a/packages/react/src/components/TextArea/__snapshots__/TextArea.story.storyshot +++ b/packages/react/src/components/TextArea/__snapshots__/TextArea.story.storyshot @@ -96,6 +96,10 @@ exports[`Storyshots TextArea Auto Height 1`] = ` margin-left: auto; } +.c2 { + margin-bottom: 8px; +} + .c0 { display: -webkit-box; display: -webkit-flex; @@ -106,64 +110,34 @@ exports[`Storyshots TextArea Auto Height 1`] = ` flex-direction: column; } -.c2 { - margin-bottom: 8px; -} - -.c7 { +.c6 { position: relative; overflow: hidden; - padding: 0 8px; - background-color: var(--charcoal-surface3); 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); } -.c7:hover:not(:disabled):not([aria-disabled]), -.c7:hover[aria-disabled=false] { +.c6:not([aria-disabled]):hover, +.c6 [aria-disabled='false']:hover { background-color: var(--charcoal-surface3-hover); } -.c7:not(:disabled):not([aria-disabled]):focus, -.c7[aria-disabled=false]:focus, -.c7:not(:disabled):not([aria-disabled]):active, -.c7[aria-disabled=false]:active { - outline: none; - box-shadow: 0 0 0 4px rgba(0,150,250,0.32); -} - -.c7:not(:disabled):not([aria-disabled]):focus:not(:focus-visible), -.c7[aria-disabled=false]:focus:not(:focus-visible), -.c7:not(:disabled):not([aria-disabled]):active:not(:focus-visible), -.c7[aria-disabled=false]:active:not(:focus-visible) { - outline: none; -} - -.c7:not(:disabled):not([aria-disabled]):focus-visible, -.c7[aria-disabled=false]:focus-visible { +.c6:focus-within { outline: none; box-shadow: 0 0 0 4px rgba(0,150,250,0.32); } -.c7:focus-within { - -webkit-transition: 0.2s box-shadow; - transition: 0.2s box-shadow; -} - -.c7:focus-within.c6:focus-within:not(:disabled):not([aria-disabled]), -.c7:focus-within.c7:focus-within[aria-disabled=false] { - box-shadow: 0 0 0 4px rgba(0,150,250,0.32); -} - -.c8 { +.c7 { 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; @@ -173,39 +147,30 @@ exports[`Storyshots TextArea Auto Height 1`] = ` width: calc(100% / 0.875); font-size: calc(14px / 0.875); line-height: calc(22px / 0.875); - padding: calc(9px / 0.875) 0; - height: calc(22px / 0.875 * 4); + 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; - -ms-overflow-style: none; - -webkit-scrollbar-width: none; - -moz-scrollbar-width: none; - -ms-scrollbar-width: none; - scrollbar-width: none; } -.c8::-webkit-input-placeholder { +.c7::-webkit-input-placeholder { color: var(--charcoal-text3); } -.c8::-moz-placeholder { +.c7::-moz-placeholder { color: var(--charcoal-text3); } -.c8:-ms-input-placeholder { +.c7:-ms-input-placeholder { color: var(--charcoal-text3); } -.c8::placeholder { +.c7::placeholder { color: var(--charcoal-text3); } -.c8::-webkit-scrollbar { - display: none; -} -
@@ -245,12 +210,12 @@ exports[`Storyshots TextArea Auto Height 1`] = `