Skip to content

Commit

Permalink
Add and integrate controls story
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniebigodes committed Jun 21, 2022
1 parent af610d9 commit 9b5a6d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Task.js
Expand Up @@ -29,6 +29,7 @@ export default function Task({
readOnly={true}
name="title"
placeholder="Input title"
style={{ textOverflow: "ellipsis" }}
/>
</label>

Expand Down
9 changes: 9 additions & 0 deletions src/components/Task.stories.js
Expand Up @@ -33,3 +33,12 @@ Archived.args = {
state: "TASK_ARCHIVED",
},
};
const longTitleString = `This task's name is absurdly large. In fact, I think if I keep going I might end up with content overflow. What will happen? The star that represents a pinned task could have text overlapping. The text could cut-off abruptly when it reaches the star. I hope not!`;

export const LongTitle = Template.bind({});
LongTitle.args = {
task: {
...Default.args.task,
title: longTitleString,
},
};

0 comments on commit 9b5a6d7

Please sign in to comment.