Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

feat(Dialog): Add ability to set custom footer #2005

Merged
merged 18 commits into from
Oct 18, 2019
Merged

Conversation

kolaps33
Copy link
Collaborator

@kolaps33 kolaps33 commented Oct 3, 2019

No description provided.

@codecov
Copy link

codecov bot commented Oct 4, 2019

Codecov Report

Merging #2005 into master will increase coverage by 0.92%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2005      +/-   ##
==========================================
+ Coverage    75.8%   76.73%   +0.92%     
==========================================
  Files         160      161       +1     
  Lines        5572     5498      -74     
  Branches     1614     1586      -28     
==========================================
- Hits         4224     4219       -5     
+ Misses       1334     1266      -68     
+ Partials       14       13       -1
Impacted Files Coverage Δ
...kages/react/src/components/Dialog/DialogFooter.tsx 100% <100%> (ø)
packages/react/src/components/Dialog/Dialog.tsx 38.88% <100%> (+1.15%) ⬆️
packages/react/src/components/Tooltip/Tooltip.tsx 62.5% <0%> (-0.52%) ⬇️
...kages/react/src/components/Toolbar/ToolbarItem.tsx 45.16% <0%> (ø) ⬆️
packages/react/src/lib/renderComponent.tsx 84.05% <0%> (ø) ⬆️
packages/react/src/components/Toolbar/Toolbar.tsx 47.76% <0%> (+18.99%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0ccdfa0...c958fab. Read the comment docs.

@vercel vercel bot temporarily deployed to staging October 4, 2019 09:54 Inactive
@vercel vercel bot temporarily deployed to staging October 4, 2019 15:36 Inactive
DialogFooter.create = createShorthandFactory({ Component: DialogFooter })

/**
* A TooltipContent contains the content of a Tooltip component.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, incorrect description...

</Flex>
),
},
})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This thing looks really weird, but we agreed to tackle it separately.

@layershifter
Copy link
Member

@kolaps33 Let's also add DialogFooter-test.ts, you can use HeaderDescription-test.ts as reference 🔨

@@ -15,6 +15,11 @@ const DialogContentExamples = () => (
description="A dialog can contain an action in the header."
examplePath="components/Dialog/Content/DialogExampleHeaderAction"
/>
<ComponentExample
title="Footer"
description="A dialog can contain a custom footer."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description="A dialog can contain a custom footer."
description="A dialog can contain a footer."

I want to keep this thing aligned with other examples.

return (
<Flex styles={styles}>
{/* <Button text>Privacy notes</Button> */}
{/* Privacy notes */}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, let's remove comments

Copy link
Member

@layershifter layershifter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add changelog and we are ready to go 🚀

@kolaps33 kolaps33 merged commit c0a70e2 into master Oct 18, 2019
@kolaps33 kolaps33 deleted the mituron-dialog-footer-2 branch October 18, 2019 10:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
⚙️ enhancement New feature or request 🚧 WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants