Skip to content

GoToLine invalid status action is inaccessible #159

@WebCoder49

Description

@WebCoder49

When the line number entered into the GoToLine box is invalid, it will turn red. Using colour only to signify this makes it invisible to screenreaders and could also be bad for some kinds of colourblind users. After this, pressing enter does nothing with no explanation.

A message should be shown to both screenreaders and the screen when it is invalid:

  • the easiest way to do this is to replace the custom JavaScript validation of input[type=text] with HTML form validation of input[type=number], and use the min and max as well as JavaScript validation methods as many minor browsers show range validation clearly (source).
  • input[type=text] should be used, to support line:column navigation

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:existing-pluginA bug/feature for an existing plugin in the plugins folder of code-input.bugSomething isn't workinggood first issueGood for newcomerspriority:high

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions