diff --git a/changelogs/fragments/7508.yml b/changelogs/fragments/7508.yml new file mode 100644 index 000000000000..73249dfb3366 --- /dev/null +++ b/changelogs/fragments/7508.yml @@ -0,0 +1,2 @@ +fix: +- Update icon of recent items from OUI library to enable dark mode ([#7508](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7508)) \ No newline at end of file diff --git a/src/core/public/chrome/ui/header/__snapshots__/recent_items.test.tsx.snap b/src/core/public/chrome/ui/header/__snapshots__/recent_items.test.tsx.snap index d6255095c0bb..208b6e181bbb 100644 --- a/src/core/public/chrome/ui/header/__snapshots__/recent_items.test.tsx.snap +++ b/src/core/public/chrome/ui/header/__snapshots__/recent_items.test.tsx.snap @@ -24,7 +24,7 @@ exports[`Recent items should render base element normally 1`] = ` class="euiHeaderSectionItemButton__content" > diff --git a/src/core/public/chrome/ui/header/recent_items.tsx b/src/core/public/chrome/ui/header/recent_items.tsx index f39260056c5c..577ea44a569b 100644 --- a/src/core/public/chrome/ui/header/recent_items.tsx +++ b/src/core/public/chrome/ui/header/recent_items.tsx @@ -20,8 +20,6 @@ import { WorkspaceObject } from '../../../workspace'; import { createRecentNavLink } from './nav_link'; import { HttpStart } from '../../../http'; import { ChromeNavLink } from '../../../'; -// TODO: replace this icon once added to OUI https://github.com/opensearch-project/OpenSearch-Dashboards/issues/7354 -import { RecentItemsIcon } from './recent_items_icon'; export interface Props { recentlyAccessed$: Rx.Observable; @@ -71,7 +69,8 @@ export const RecentItems = ({ }} data-test-subj="recentItemsSectionButton" > - + {/* TODO: replace this icon once there is a new icon added to OUI https://github.com/opensearch-project/OpenSearch-Dashboards/issues/7354 */} + } isOpen={isPopoverOpen} diff --git a/src/core/public/chrome/ui/header/recent_items_icon.tsx b/src/core/public/chrome/ui/header/recent_items_icon.tsx deleted file mode 100644 index 0d9857b182c5..000000000000 --- a/src/core/public/chrome/ui/header/recent_items_icon.tsx +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ -import React from 'react'; - -// TODO: remove this icon once added to OUI https://github.com/opensearch-project/OpenSearch-Dashboards/issues/7354 -export const RecentItemsIcon = () => { - return ( - - - - ); -};