Skip to content

Commit

Permalink
fix(note): ensure date aligns when no edited status
Browse files Browse the repository at this point in the history
  • Loading branch information
edleeks87 committed Jul 7, 2021
1 parent 3892db4 commit f3c6dbe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/components/note/note.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,17 @@ describe("Note", () => {
wrapper.find(StyledFooterContent),
{ modifier: ":first-of-type" }
);

assertStyleMatch(
{
fontSize: "12px",
color: baseTheme.note.timeStamp,
cursor: "pointer",
marginLeft: "24px",
},
wrapper.find(StyledFooterContent),
{ modifier: ":last-of-type:not(:first-of-type)" }
);
});

it('renders the "name" and "createdDate" when props have value', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/note/note.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const StyledFooterContent = styled.div`
color: ${theme.note.timeStamp};
}
&:last-of-type {
&:last-of-type:not(:first-of-type) {
font-size: 12px;
color: ${theme.note.timeStamp};
cursor: pointer;
Expand Down

0 comments on commit f3c6dbe

Please sign in to comment.