Skip to content

Markdown extension / webview: Focus border  #7067

Closed

Description

@kieferrm
  1. Using the markdown extension (Extract the MarkDown editor into an extension #6106) open a preview of a markdown file
  2. Open command pallet
  3. Close pallet by clicking into the preview
    -> focus border

7rry5cydg1

I haven't found a styling yet that solves the issue.

Activity

  1. changed the title [-]Markdown extensions / webview: Focus border [/-] [+]Markdown extension / webview: Focus border [/+] on May 31, 2016
  2. bpasero commented on Jun 1, 2016

    @bpasero
    Contributor

    When quick open is closing it calls the focus() method of the active editor. It is up to the implementor of the editor (in this case the htmlPreviewPart) to do something then. We seem to call focus() on the and this brings up the native outline.

    If we add a rule to our shell.css (in https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/electron-browser/media/shell.css#L174) to have no outline for webviews, this issue is fixed.

    .monaco-shell .part.editor .iframe-container,
    .monaco-shell .part.editor .binary-container,
    webview {
        outline: 0 !important;
    }
    
  3. added
    bug
    on Jun 1, 2016
  4. jrieken commented on Jun 1, 2016

    @jrieken
    Contributor

    This fix should go in the previewPart

  5. kieferrm commented on Jun 2, 2016

    @kieferrm
    MemberAuthor

    The change is not working since the outline style is not applied to the webview but to the body of the displayed document(s).

  6. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions