Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore(svelte): Commit/diff style and behavior tweaks#63785

Merged
fkling merged 2 commits into
mainfrom
fkling/sk/commit-ui-tweaks
Jul 11, 2024
Merged

chore(svelte): Commit/diff style and behavior tweaks#63785
fkling merged 2 commits into
mainfrom
fkling/sk/commit-ui-tweaks

Conversation

@fkling

@fkling fkling commented Jul 11, 2024

Copy link
Copy Markdown
Contributor

A couple of tweaks to the commit / diff view:

  • Linking both file paths in the header for renamed files
  • Collapse renamed file diffs without changes by default
  • Move "no changes" out of FileDiffHunks to not render a border around the test.
  • Add description for binary files
  • Adjust line height and font size to match what we use in the file view
  • Added the visibly-hidden utility class to render content for a11y purposes (I didn't test the changes I made with a screenreader though)

Contributes to SRCH-523

Test plan

Manual testing

Before After
2024-07-11_15-25 2024-07-11_15-25_1

A couple of tweaks to the commit / diff view:

- Linking both file paths in the header for renamed files
- Collapse renamed file diffs without changes by default
- Move "no changes" out of `FileDiffHunks` to not render a border around
  the test.
- Add description for binary files
- Adjust line height and font size to match what we use in the file view
- Added the `visibly-hidden` utility class to render content for a11y
  purposes (I didn't test the changes I made with a screenreader though)
@fkling fkling requested a review from a team July 11, 2024 13:45
@fkling fkling self-assigned this Jul 11, 2024
@cla-bot cla-bot Bot added the cla-signed label Jul 11, 2024
line-height: 1.6666666667;
white-space: nowrap;
text-align: right;
-webkit-user-select: none;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you look below, this declaration was removed. It's added automatically by the build process.

@fkling fkling enabled auto-merge (squash) July 11, 2024 18:39
@fkling fkling merged commit 1cf0ad8 into main Jul 11, 2024
@fkling fkling deleted the fkling/sk/commit-ui-tweaks branch July 11, 2024 18:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants