Skip to content

Don't highlight matching parentheses when focus is not on editor #36

@nchammas

Description

@nchammas

This is a minor UX suggestion, but it's bugging me enough that I felt compelled to write this up. 😄

When the focus is not on the editor, the editor still highlights matching parentheses if the cursor happens to have been placed on the closing parenthesis before the focus was moved out of the editor.

This can be distracting because the highlight is in bright red. It draws the eye even though the user's focus is no longer on the editor. The color and brightness almost suggest there is some kind of problem that needs attention.

You can see this in play on the docs for this component:

Even though your cursor is not in either editor, both editors are really trying to draw your attention to the matching parentheses.

I think this behavior should only be active when the focus is on/within a given editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions