Skip to content

Add configuration parameter to turn off or change the type of border decorations on error messages and possibly other content like the table mode key in config.nu #10120

Closed

Description

@edhowland

Related problem

While it is possible to set table border decorations in config.nu, you can't
also set them for error messages. One problem with this inadequacy is for
screen reader users. When presented with an error message, the screen reader
insists on enunciating each and every box drawing character. Information
is buried in the audio stream somewhere and it is very hard to distinguish
it from the rest of the noise.

Even though you can control some verbosity with the VoiceOver screen reader,
there doesn't seem to be any way to turn off Unicode or other symbols like box drawing characters.
Even if that were possible, it would be beneficial to be able to capture
raw text from error messages for other purposes like making documentation.

Perhaps a table in $env.config like: errors: { mode: none }
Other theme items can also be present.

Describe the solution you'd like

Add a new key called 'errors' to $env.config with a record with a key called 'mode' with values matching those in the table.mode list.

Describe alternatives you've considered

No response

Additional context and details

No response

Activity

  1. added
    category:enhancement
    status:needs-triage
    on Aug 25, 2023
  2. added
    A:accessibility
    and removed
    status:needs-triage
    on Aug 26, 2023
  3. added a commit that references this issue on Aug 27, 2023
    cc805f3
  4. added this to the v0.85.0 milestone on Aug 28, 2023
  5. added a commit that references this issue on Aug 28, 2023
    5fb4da6
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

    A:accessibilitycategory:enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions