Skip to content
Discussion options

You must be logged in to vote

Hi @dmm9,

The blue frame comes from Theia's global focus rule in packages/core/src/browser/style/index.css:

:focus:not(iframe) {
    outline: 1px solid var(--theia-focusBorder);
    outline-offset: -1px;
}

Most Theia widgets set tabIndex on their root node so the widget itself can take focus, which triggers that outline. Built-in widgets either override it (see for example packages/core/src/browser/style/split-widget.css) or delegate focus to an inner element with its own styling.
For your widget you could also just override via outline: none.
If the widget has focusable children (input, tree, etc.), it's usually nicer to keep the outline on those and only remove it from the outer container.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dmm9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants