From b1c37dc87906a8314849f9352562a8a6d3bbdb05 Mon Sep 17 00:00:00 2001 From: Olasunkanmi Fafowora Date: Wed, 13 Mar 2024 10:40:07 +0100 Subject: [PATCH] Changed suggested value for IDecorationOptions from rgb to CSS hex color values for the manoce.editor --- node_modules/monaco-editor-core/monaco.d.ts | 6 ++++-- node_modules/monaco-editor/monaco.d.ts | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/node_modules/monaco-editor-core/monaco.d.ts b/node_modules/monaco-editor-core/monaco.d.ts index 001b8a6de2..6cc850e7c1 100644 --- a/node_modules/monaco-editor-core/monaco.d.ts +++ b/node_modules/monaco-editor-core/monaco.d.ts @@ -1599,12 +1599,14 @@ declare namespace monaco.editor { export interface IDecorationOptions { /** * CSS color to render. - * e.g.: rgba(100, 100, 100, 0.5) or a color from the color registry + * Note: Only CSS hex color values are supported. + * e.g.: #646464 or a color from the color registry */ color: string | ThemeColor | undefined; /** * CSS color to render. - * e.g.: rgba(100, 100, 100, 0.5) or a color from the color registry + * Note: Only CSS hex color values are supported. + * e.g.: #646464 or a color from the color registry */ darkColor?: string | ThemeColor; } diff --git a/node_modules/monaco-editor/monaco.d.ts b/node_modules/monaco-editor/monaco.d.ts index af9c307afb..a6e2edd3e4 100644 --- a/node_modules/monaco-editor/monaco.d.ts +++ b/node_modules/monaco-editor/monaco.d.ts @@ -1603,13 +1603,15 @@ declare namespace monaco.editor { export interface IDecorationOptions { /** - * CSS color to render. - * e.g.: rgba(100, 100, 100, 0.5) or a color from the color registry + * CSS color to render. + * Note: Only CSS hex color values are supported. + * e.g.: #646464 or a color from the color registry */ color: string | ThemeColor | undefined; /** * CSS color to render. - * e.g.: rgba(100, 100, 100, 0.5) or a color from the color registry + * Note: Only CSS hex color values are supported. + * e.g.: #646464 or a color from the color registry */ darkColor?: string | ThemeColor; }