Skip to content

Add opt-in setting to remove diff signs #1464

Closed

Description

@jerone

There is (or was) a feature called remove-diff-signs.js, but it's intention is to make the diff signs unselectable. Personally I think those signs are redundant in combination with the background colors in the diffs and can be removed.

If this feature request is approved, then the following code is probably all you need to include:

.blob-code-marker-addition:before,
.blob-code-marker-context:before,
.blob-code-marker-deletion:before {
	display: none !important;
}

Activity

  1. fregante commented on Aug 8, 2018

    @fregante
    Member

    those signs are redundant in combination with the background colors

    Fun fact: the feature was actually called "remove-diff-signs" because that's exactly what its first version did. (#254) However the original PR was later changed because relying on colors made it less accessible. #254 (comment)

    I'd be fine with that but others might not. Either way since it's just simple CSS you can just place that in the options rather than add it as a default.

  2. sindresorhus commented on Aug 8, 2018

    @sindresorhus
    Member

    I think this would be nice, but for accessibility reasons, it should be opt-in.

  3. added a commit that references this issue on Sep 14, 2018
    b2baacc
  4. sindresorhus commented on Nov 19, 2018

    @sindresorhus
    Member

    Reopening as I think we should make this an opt-in setting.

  5. changed the title [-]Remove diff signs[/-] [+]Add opt-in setting to remove diff signs[/+] on Nov 19, 2018
  6. sindresorhus commented on Mar 18, 2019

    @sindresorhus
    Member

    @bfred-it Are you still against this even if it's opt-in? I agree it's not a good default for accessibility reasons, but I personally find the plus/minus moot as the colors are enough for me, so I'd like to opt into hiding those, as they just create visual noise.

  7. fregante commented on Mar 18, 2019

    @fregante
    Member

    Opt-out can be done. Opt-in not so much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions