diff --git a/apps/spruce/src/components/EditableTagField/TagRow.tsx b/apps/spruce/src/components/EditableTagField/TagRow.tsx index 9247a1810..19730fdf1 100644 --- a/apps/spruce/src/components/EditableTagField/TagRow.tsx +++ b/apps/spruce/src/components/EditableTagField/TagRow.tsx @@ -1,7 +1,7 @@ import { useReducer, useMemo } from "react"; import styled from "@emotion/styled"; import IconButton from "@leafygreen-ui/icon-button"; -import TextInput from "@leafygreen-ui/text-input"; +import TextArea from "@leafygreen-ui/text-area"; import { PlusButton } from "components/Buttons"; import Icon from "components/Icon"; import { size } from "constants/tokens"; @@ -33,82 +33,74 @@ export const TagRow: React.FC = ({ const { canSave, isInputValid, key, shouldShowNewTag, value } = state; return ( - + <> {shouldShowNewTag && ( - + -
- - // @ts-expect-error: FIXME. This comment was added by an automated script. - dispatch({ type: "updateTag", key: e.target.value }) - } - data-cy="user-tag-key-field" - /> -
+ + +
-
-
-
- -
-
-
- -
-
-
-
-
+ Value + +
+
+ + +
- +
-
-
-
- -
-
-
- -
-
-
-
-
+ Key + +
+
+
-
-
-
- -
-
-
- -
-
-
-
-
+ Value + +
+
+ + +
-
+
-
+ Key + +
+
+
-
+ Value + +
+
+ + +
-
+
-
- -
+ + + Add Tag +
+ \ No newline at end of file diff --git a/apps/spruce/src/components/EditableTagField/index.tsx b/apps/spruce/src/components/EditableTagField/index.tsx index 9032ee0f6..99a817ad2 100644 --- a/apps/spruce/src/components/EditableTagField/index.tsx +++ b/apps/spruce/src/components/EditableTagField/index.tsx @@ -86,5 +86,5 @@ const FlexColumnContainer = styled.div` display: flex; flex-direction: column; margin-right: ${size.xs}; - max-width: 70%; + max-width: 100%; `; diff --git a/apps/spruce/src/components/FilterBadges/__snapshots__/FilterBadges_Default.storyshot b/apps/spruce/src/components/FilterBadges/__snapshots__/FilterBadges_Default.storyshot index a36716cc5..635beee8a 100644 --- a/apps/spruce/src/components/FilterBadges/__snapshots__/FilterBadges_Default.storyshot +++ b/apps/spruce/src/components/FilterBadges/__snapshots__/FilterBadges_Default.storyshot @@ -61,8 +61,8 @@ class="leafygreen-ui-6bdaia" data-lgid="lg-label" data-testid="lg-form_field-label" - for="lg-form_field-input-31" - id="lg-form_field-label-28" + for="lg-form_field-input-7" + id="lg-form_field-label-4" > key @@ -77,10 +77,10 @@ aria-describedby="" aria-disabled="false" aria-invalid="false" - aria-labelledby="lg-form_field-label-28" + aria-labelledby="lg-form_field-label-4" autocomplete="on" class="lg-ui-form-field-input-0000 leafygreen-ui-1ago99h" - id="lg-form_field-input-31" + id="lg-form_field-input-7" placeholder="key" required="" type="text" @@ -94,7 +94,7 @@ class="leafygreen-ui-11ydt2g" data-lgid="lg-form_field-feedback" data-testid="lg-form_field-feedback" - id="lg-form_field-feedback-30" + id="lg-form_field-feedback-6" />
value @@ -124,10 +124,10 @@ aria-describedby="" aria-disabled="false" aria-invalid="false" - aria-labelledby="lg-form_field-label-32" + aria-labelledby="lg-form_field-label-8" autocomplete="on" class="lg-ui-form-field-input-0000 leafygreen-ui-1ago99h" - id="lg-form_field-input-35" + id="lg-form_field-input-11" placeholder="value" required="" type="text" @@ -141,7 +141,7 @@ class="leafygreen-ui-11ydt2g" data-lgid="lg-form_field-feedback" data-testid="lg-form_field-feedback" - id="lg-form_field-feedback-34" + id="lg-form_field-feedback-10" />