Stock-based compensation - Summary of stock option activity (Details) - USD ($) $ / shares in Units, shares in Thousands, $ in Thousands |
6 Months Ended |
Dec. 31, 2019 |
| Number of Shares |
|
| Beginning balance (shares) |
3,409
|
| Granted (shares) |
55
|
| Exercised (shares) |
(1,326)
|
| Canceled or expired (shares) |
(175)
|
| Ending balance (shares) |
1,963
|
| Options vested and expected to vest (shares) |
1,929
|
| Options exercisable (shares) |
1,563
|
| Weighted Average Exercise Price |
|
| Weighted average exercise (in dollars per share) |
$ 6.49
|
| Granted (in dollars per share) |
4.92
|
| Exercised (in dollars per share) |
6.29
|
| Canceled or expired (in dollars per share) |
5.94
|
| Weighted average exercise (in dollars per share) |
6.64
|
| Options vested and expected to vest (in dollars per share) |
6.66
|
| Options exercisable (in dollars per share) |
$ 6.96
|
| Weighted Average Remaining Contractual Life |
|
| Options outstanding |
5 years 8 months 1 day
|
| Options vested and expected to vest |
5 years 1 month 9 days
|
| Options exercisable |
5 years 21 days
|
| Aggregate Intrinsic Value |
|
| Options outstanding |
$ 5,250
|
| Options vested and expected to vest |
5,213
|
| Options exercisable |
$ 4,312
|