Skip to content

Description of diff style is incorrect in Quick Start #2090

Open

Description

@kategengler

https://guides.emberjs.com/release/getting-started/quick-start/ [here in code] (https://github.com/ember-learn/guides-source/blob/master/guides/release/getting-started/quick-start.md?plain=1#L257 ) describes the diff style:

In the rest of the code examples in this tutorial, whenever we add or remove code, we will show a "diff." The lines you need to remove have a minus sign in front of them, and the lines you should add have a plus sign. If you are using a screen reader while you go through the Guides, we recommend using Firefox and NVDA or Safari and VoiceOver for the best experience.

However, the diffs display only with colors:

Image

There are no pluses or minuses in the elements either.

I suspect this may not be accessible to those with colorblindness.

Activity

  1. olenderhub commented on Jul 27, 2026

    @olenderhub

    @kategengler I restored the +/- markers site-wide (not just in Quick Start), since they disappeared after the Shiki migration and the guide text still mentioned them.

    PR: #2231

    What do you think?

  2. olenderhub commented on Jul 27, 2026

    @olenderhub

    One accessibility note: the restored +/- markers are implemented using CSS ::before content, similar to the old Prism styling. This improves the visual distinction, including for users with color-vision deficiencies, but screen readers do not reliably announce generated content.

    For full screen-reader support, the markers-or accessible labels such as "added" and "removed"-would need to be included in the DOM. Ideally, this could be handled centrally in ember-showdown-shiki, where the diff lines are rendered, rather than requiring changes to every guide page.

  3. olenderhub commented on Jul 27, 2026

    @olenderhub

    @kategengler I pushed code with changes in ember-showdown-shiki which I believe is better direction with optional diff markers

    so instead proposition above I think better is to check if this works IgnaceMaes/ember-showdown-shiki#49 better

    What do you think?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions