Skip to content

Commit

Permalink
Style: update group label submission success checkmarks
Browse files Browse the repository at this point in the history
  - vertically center
  - update animation timing
  • Loading branch information
vanderhoop committed Feb 8, 2020
1 parent 015260d commit c9af1d4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions web/static/js/components/css_modules/group_label_input.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,22 @@
.update-succeeded-checkmark {
animation: fadeOut ease 2s;
position: absolute;
right: -1.75rem;

&:global(.ui.check) {
height: 100%;
display: flex;
align-items: center;
}
}

@keyframes fadeOut {
0% {
opacity:1;
}
80% {
opacity:1;
}
100% {
opacity:0;
}
Expand Down
4 changes: 2 additions & 2 deletions web/static/js/components/group_label_input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ class GroupLabelInput extends Component {
}

labelUpdatedCheckmark = () => {
const classes = ["check", "icon", styles.updateSucceededCheckmark]
const classes = ["ui", "green", "check", "icon", styles.updateSucceededCheckmark]
setTimeout(() => {
this.setState({ showCheckmark: false })
}, 2000)
return <div className="ui"><i className={classes.join(" ")} /></div>
return <div><i className={classes.join(" ")} /></div>
}

render() {
Expand Down

0 comments on commit c9af1d4

Please sign in to comment.