-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LX] Add hairlines when point has focus (#2212)
## Summary: Right now, we have hairlines showing when a user moves a point using a mouse, but the hairlines don't show up when using keyboard. Adding hairlines when the point is focused in this PR. Issue: https://khanacademy.atlassian.net/browse/LEMS-2308 ## Test plan: `yarn jest packages/perseus/src/widgets/interactive-graphs/graphs/components/movable-point.test.tsx` Storybook - http://localhost:6006/?path=/story/perseuseditor-widgets-interactive-graph--interactive-graph-point - Move the points around with mouse and confirm that that behavior has not changed - hairlines should still be present. - Tab to the points with keyboard and confirm that the hairlines now show up. - Switch the graph to "none" markings, and confirm that the hairlines no longer show up. ### Screenshots when point is focused | Before | After | | --- | --- | | <img width="485" alt="Screenshot 2025-02-06 at 4 15 36 PM" src="https://github.com/user-attachments/assets/de3adee4-789f-4a5a-90d8-c03b861d3f5e" /> | <img width="487" alt="Screenshot 2025-02-06 at 4 15 43 PM" src="https://github.com/user-attachments/assets/87510b7c-7524-4a36-a740-b697ad36390c" /> | Author: nishasy Reviewers: SonicScrewdriver, mark-fitzgerald, catandthemachines Required Reviewers: Approved By: SonicScrewdriver Checks: ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ⏹️ [cancelled] Publish npm snapshot (ubuntu-latest, 20.x), ⏹️ [cancelled] Cypress (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ⏹️ [cancelled] Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x), ⏹️ [cancelled] Check builds for changes in size (ubuntu-latest, 20.x) Pull Request URL: #2212
- Loading branch information
Showing
4 changed files
with
81 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@khanacademy/perseus": patch | ||
--- | ||
|
||
[LX] Add hairlines when point has focus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters