Skip to content

Commit

Permalink
Use Warning icon with Cookie issues item (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayan-000 authored Apr 11, 2024
1 parent 44098b6 commit 1501540
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
* External dependencies
*/
import {
CookieIcon,
CookieIconWhite,
SIDEBAR_ITEMS_KEYS,
WarningBare,
type SidebarItems,
} from '@ps-analysis-tool/design-system';

Expand All @@ -33,10 +32,16 @@ const sidebarData: SidebarItems = {
title: 'Cookie Issues',
children: {},
icon: {
Element: CookieIcon,
Element: WarningBare,
props: {
className: 'fill-granite-gray',
},
},
selectedIcon: {
Element: CookieIconWhite,
Element: WarningBare,
props: {
className: 'fill-white',
},
},
},
};
Expand Down
11 changes: 9 additions & 2 deletions packages/cli-dashboard/src/components/siteReport/tabs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
CookieIcon,
CookieIconWhite,
SIDEBAR_ITEMS_KEYS,
WarningBare,
type SidebarItems,
} from '@ps-analysis-tool/design-system';

Expand All @@ -38,10 +39,16 @@ const Tabs: SidebarItems = {
title: 'Cookie Issues',
children: {},
icon: {
Element: CookieIcon,
Element: WarningBare,
props: {
className: 'fill-granite-gray',
},
},
selectedIcon: {
Element: CookieIconWhite,
Element: WarningBare,
props: {
className: 'fill-white',
},
},
},
};
Expand Down
1 change: 1 addition & 0 deletions packages/design-system/src/icons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@ export { default as OutboundInboundColoredIcon } from './outbound-inbound-colore
export { default as QuestionMark } from './question-mark.svg';
export { default as GreenTick } from './green-tick-icon.svg';
export { default as ChevronDown } from './chevron-down.svg';
export { default as WarningBare } from './warning.svg';
2 changes: 2 additions & 0 deletions packages/design-system/src/icons/warning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1501540

Please sign in to comment.