Monaco-editor: Context Menu - customize appearance?

Created on 23 Oct 2018  路  5Comments  路  Source: microsoft/monaco-editor

Monaco version 0.11.1--
I would like to customize the appearance of the context menu. I can achieve that easily by overwriting the CSS but it doesn't seem like that the CSS is a part of public API? or is it? Is there another way to customize the context menu appearance?

contextmenu feature-request

Most helpful comment

Seems like since version 0.21 it's no longer possible to style using CSS (the context menu is rendered inside a shadow root). This makes this issue more important IMO.

All 5 comments

There is no API to customize the look of the context menu except for writing/overwriting CSS

Thanks!
Is the CSS is public? is it save to overwrite it knowing that it wouldn't change?
It's not mentioned to be public - so I wonder if it could be in a process of refactoring at some point. In this case, it could make a mass in my UI if I used the classes to overwrite CSS...

Any update??

I've been overwriting CSS for a few versions and it does change so I've been operating under the assumption it is non public and will change at any moment.

I would LOVE for this to be a supported feature.

Seems like since version 0.21 it's no longer possible to style using CSS (the context menu is rendered inside a shadow root). This makes this issue more important IMO.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brandalorian picture brandalorian  路  3Comments

aarinsmith picture aarinsmith  路  3Comments

akosyakov picture akosyakov  路  3Comments

ststeiger picture ststeiger  路  3Comments

Kang-Jun-sik picture Kang-Jun-sik  路  3Comments