diff --git a/CHANGELOG.md b/CHANGELOG.md index b04ae7db4682..deeec5018e20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,6 +81,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Migrate from legacy elasticsearch client to opensearch-js client in `osd-opensearch-archiver` package([#4142](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4142)) - Replace the use of `bluebird` in `saved_objects` plugin ([#4026](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4026)) - Relocate tutorials imagery into `src/plugins/home/public/assets/tutorials/logos` ([#4382](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4382)) +- [Markdown] Replace custom CSS styles and HTML markup with OUI components ([#4390](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4390)) - [VisBuilder] Use OUI icon ([#4446](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4446)) - [Vis Colors] [VisLib] Update legend colors to use OUI color palette ([#4365](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4365)) - [Vis Colors] [Region Maps] Replace hardcode color to OUI color in `region_map` plugin ([#4299](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4299)) diff --git a/src/plugins/vis_type_markdown/public/markdown_options.tsx b/src/plugins/vis_type_markdown/public/markdown_options.tsx index 140543a66e0b..e6205786f78c 100644 --- a/src/plugins/vis_type_markdown/public/markdown_options.tsx +++ b/src/plugins/vis_type_markdown/public/markdown_options.tsx @@ -52,7 +52,7 @@ function MarkdownOptions({ stateParams, setValue }: VisOptionsProps - + @@ -83,7 +83,7 @@ function MarkdownOptions({ stateParams, setValue }: VisOptionsProps onMarkdownUpdate(value)} fullWidth={true} diff --git a/src/plugins/vis_type_markdown/public/markdown_vis.scss b/src/plugins/vis_type_markdown/public/markdown_vis.scss index 97cfc4b151c7..1a72f2dc8576 100644 --- a/src/plugins/vis_type_markdown/public/markdown_vis.scss +++ b/src/plugins/vis_type_markdown/public/markdown_vis.scss @@ -5,18 +5,8 @@ // mkdChart__legend--small // mkdChart__legend-isLoading -.mkdVis { - padding: $euiSizeS; - width: 100%; -} - .visEditor--markdown { - .visEditorSidebar__config > *, - .visEditor--markdown__textarea { + .visEditorSidebar__config > * { flex-grow: 1; } - - .mkdEditor { - height: 100%; - } } diff --git a/src/plugins/vis_type_markdown/public/markdown_vis_controller.tsx b/src/plugins/vis_type_markdown/public/markdown_vis_controller.tsx index befa2dce8fcd..4d2ff853dd70 100644 --- a/src/plugins/vis_type_markdown/public/markdown_vis_controller.tsx +++ b/src/plugins/vis_type_markdown/public/markdown_vis_controller.tsx @@ -29,6 +29,7 @@ */ import React, { useEffect } from 'react'; +import { EuiPanel } from '@elastic/eui'; import { Markdown } from '../../opensearch_dashboards_react/public'; import { MarkdownVisParams } from './types'; @@ -47,13 +48,18 @@ const MarkdownVisComponent = ({ useEffect(renderComplete); // renderComplete will be called after each render to signal, that we are done with rendering. return ( -
+ -
+ ); };