Repository navigation
Diff options popover - #10756
Merged
Merged
Diff options popover#10756
Conversation
Since we don't support it in working directory changes
Don't mess with keyboard a11y
We'll have to handle closing when the user clicks outside of the popover
Member
Author
|
@ampinsk Feel free to do an after-the-fact review of this, I'd love your input. Since you're out for the week however I'm going to merge this as-is to get it into the next beta. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a button with a gear icon to the changes and history view that toggles a popover containing diff options. This replaces the checkbox we currently have for hiding/showing whitespace changes and the diff mode.
For discoverability reasons we show a little 'New' callout bubble next to the button. Both the popover and the new callout are new patterns in the app but I think they fit in nicely. The popover parts of the diff options component could and should be extracted into its own reusable container but I'm punting on that until we want to reuse it.
To a large extend this copies the GitHub.com UX for diff settings
Screenshots