Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
[Assembly v1] Feedback (#496)
Browse files Browse the repository at this point in the history
* codemod changes

* update snapshots

* Update src/components/feedback/feedback.js

Co-authored-by: Katy DeCorah <decorah@mapbox.com>

* update snapshots

Co-authored-by: Katy DeCorah <decorah@mapbox.com>
  • Loading branch information
malwoodsantoro and Katy DeCorah authored Sep 15, 2021
1 parent 480a7c7 commit e5152a3
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,17 @@ exports[`Workflow 3 - Enter feedback Cannot submit feedback yet 1`] = `
className="bg-gray-faint round py12 px12"
>
<div
className="flex-parent flex-parent--column"
className="flex flex--column"
>
<div
className="flex-child flex-parent flex-parent--space-between-main w-full mb12"
className="flex flex--space-between-main w-full mb12"
>
<div
className="flex-child txt-bold"
className="txt-bold"
>
Something is confusing
</div>
<div
className="flex-child"
>
<div>
<Tooltip
alignment="center"
block={false}
Expand Down Expand Up @@ -140,7 +138,7 @@ exports[`Workflow 3 - Enter feedback Cannot submit feedback yet 1`] = `
</div>
</div>
<div
className="flex-child mb6 prose"
className="mb6 prose"
>
<CategoryConfusing
option="What about this page is confusing? How can we improve the content?"
Expand Down Expand Up @@ -233,7 +231,7 @@ exports[`Workflow 3 - Enter feedback Cannot submit feedback yet 1`] = `
</CategoryConfusing>
</div>
<div
className="flex-child color-gray"
className="color-text"
>
Need help?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,17 @@ exports[`Workflow 2 - I like this page Check UI element state 1`] = `
className="bg-gray-faint round py12 px12"
>
<div
className="flex-parent flex-parent--column"
className="flex flex--column"
>
<div
className="flex-child flex-parent flex-parent--space-between-main w-full mb12"
className="flex flex--space-between-main w-full mb12"
>
<div
className="flex-child txt-bold"
className="txt-bold"
>
I like this page
</div>
<div
className="flex-child"
>
<div>
<Tooltip
alignment="center"
block={false}
Expand Down Expand Up @@ -140,7 +138,7 @@ exports[`Workflow 2 - I like this page Check UI element state 1`] = `
</div>
</div>
<div
className="flex-child mb6 prose"
className="mb6 prose"
>
<CategoryLike
leadText="Tell us what you like about this page."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,17 @@ exports[`Workflow 2 - Report a problem Check UI element state 1`] = `
className="bg-gray-faint round py12 px12"
>
<div
className="flex-parent flex-parent--column"
className="flex flex--column"
>
<div
className="flex-child flex-parent flex-parent--space-between-main w-full mb12"
className="flex flex--space-between-main w-full mb12"
>
<div
className="flex-child txt-bold"
className="txt-bold"
>
Report a problem
</div>
<div
className="flex-child"
>
<div>
<Tooltip
alignment="center"
block={false}
Expand Down Expand Up @@ -140,7 +138,7 @@ exports[`Workflow 2 - Report a problem Check UI element state 1`] = `
</div>
</div>
<div
className="flex-child mb6 prose"
className="mb6 prose"
>
<CategoryProblem
leadText="Tell us more about what's happening."
Expand Down Expand Up @@ -295,7 +293,7 @@ exports[`Workflow 2 - Report a problem Check UI element state 1`] = `
</CategoryProblem>
</div>
<div
className="flex-child color-gray"
className="color-text"
>
Need help?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,15 @@ exports[`Generate snapshot for feedback confirmation 1`] = `
className="bg-gray-faint round py12 px12"
>
<div
className="flex-parent flex-parent--column"
className="flex flex--column"
>
<div
className="flex-child flex-parent flex-parent--space-between-main w-full mb12"
className="flex flex--space-between-main w-full mb12"
>
<div
className="flex-child txt-bold"
className="txt-bold"
/>
<div
className="flex-child"
>
<div>
<Tooltip
alignment="center"
block={false}
Expand Down Expand Up @@ -135,7 +133,7 @@ exports[`Generate snapshot for feedback confirmation 1`] = `
</div>
</div>
<div
className="flex-child mb6 prose"
className="mb6 prose"
>
<div
className="align-center prose relative"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,17 @@ exports[`Workflow 2 - Contact support Click button, then set state 1`] = `
className="bg-gray-faint round py12 px12"
>
<div
className="flex-parent flex-parent--column"
className="flex flex--column"
>
<div
className="flex-child flex-parent flex-parent--space-between-main w-full mb12"
className="flex flex--space-between-main w-full mb12"
>
<div
className="flex-child txt-bold"
className="txt-bold"
>
Share your feedback
</div>
<div
className="flex-child"
>
<div>
<Tooltip
alignment="center"
block={false}
Expand Down Expand Up @@ -139,7 +137,7 @@ exports[`Workflow 2 - Contact support Click button, then set state 1`] = `
</div>
</div>
<div
className="flex-child mb6 prose"
className="mb6 prose"
>
<button
className="btn w-full mb6"
Expand Down Expand Up @@ -167,7 +165,7 @@ exports[`Workflow 2 - Contact support Click button, then set state 1`] = `
</button>
</div>
<div
className="flex-child color-gray"
className="color-text"
>
Need help?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,17 @@ exports[`Workflow with logged in user information 2 - Something is confusing Che
className="bg-gray-faint round py12 px12"
>
<div
className="flex-parent flex-parent--column"
className="flex flex--column"
>
<div
className="flex-child flex-parent flex-parent--space-between-main w-full mb12"
className="flex flex--space-between-main w-full mb12"
>
<div
className="flex-child txt-bold"
className="txt-bold"
>
Something is confusing
</div>
<div
className="flex-child"
>
<div>
<Tooltip
alignment="center"
block={false}
Expand Down Expand Up @@ -140,7 +138,7 @@ exports[`Workflow with logged in user information 2 - Something is confusing Che
</div>
</div>
<div
className="flex-child mb6 prose"
className="mb6 prose"
>
<CategoryConfusing
option="What about this page is confusing? How can we improve the content?"
Expand Down Expand Up @@ -233,7 +231,7 @@ exports[`Workflow with logged in user information 2 - Something is confusing Che
</CategoryConfusing>
</div>
<div
className="flex-child color-gray"
className="color-text"
>
Need help?
Expand Down
12 changes: 6 additions & 6 deletions src/components/feedback/feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ class Feedback extends React.PureComponent {
return (
<div className="dr-ui--feedback wmax300">
<div className="bg-gray-faint round py12 px12">
<div className="flex-parent flex-parent--column">
<div className="flex-child flex-parent flex-parent--space-between-main w-full mb12">
<div className="flex-child txt-bold">{title}</div>
<div className="flex-child">
<div className="flex flex--column">
<div className="flex flex--space-between-main w-full mb12">
<div className="txt-bold">{title}</div>
<div>
<Tooltip content="Close">
<button
id="feedback-close-button"
Expand All @@ -147,9 +147,9 @@ class Feedback extends React.PureComponent {
</Tooltip>
</div>
</div>
<div className="flex-child mb6 prose">{children}</div>
<div className="mb6 prose">{children}</div>
{showContactSupport && (
<div className="flex-child color-gray">
<div className="color-text">
Need help?{' '}
<button
className="link"
Expand Down

0 comments on commit e5152a3

Please sign in to comment.