Skip to content

Commit

Permalink
fix(react): update IcTopNavigation visual regression image
Browse files Browse the repository at this point in the history
Update IcTopNavigation visual regression image
  • Loading branch information
gd2910 committed Feb 12, 2025
1 parent 0d90b60 commit 1d861c3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,13 @@ export const IconButtons = (): ReactElement => {
<IcSearchBar slot="search" label="Search" placeholder="Search" />
<IcNavigationButton label="Button One" slot="buttons">
<ReusableIcon />
<IcBadge label="1" slot="badge" position="near" variant="light" />
<IcBadge
label="1"
slot="badge"
customColor="#d4351c"
variant="custom"
theme="dark"
/>
</IcNavigationButton>
<IcNavigationButton label="Button Two" slot="buttons">
<SlottedSVG
Expand Down
14 changes: 8 additions & 6 deletions packages/react/src/stories/ic-top-navigation.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ import { NavLink, MemoryRouter, Switch, Route, Routes } from "react-router-dom";
slot="buttons"
onClick={() => alert("test")}
>
<IcBadge label="1" slot="badge" variant="light" />
<IcBadge label="1" slot="badge" customColor="#d4351c" variant="custom" theme="dark"/>
<svg
slot="icon"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -132,7 +132,7 @@ import { NavLink, MemoryRouter, Switch, Route, Routes } from "react-router-dom";
href="https://www.google.com"
target="_blank"
>
<IcBadge slot="badge" variant="light" type="dot" />
<IcBadge slot="badge" customColor="#d4351c" variant="custom" type="dot" theme="dark"/>
<svg
slot="icon"
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -838,8 +838,9 @@ export const defaultArgs = {
<IcBadge
label="1"
slot="badge"
position="near"
variant="light"
customColor="#d4351c"
variant="custom"
theme="dark"
></IcBadge>
</IcNavigationButton>
<IcNavigationButton
Expand All @@ -864,9 +865,10 @@ export const defaultArgs = {
</svg>
<IcBadge
slot="badge"
position="near"
variant="light"
customColor="#d4351c"
variant="custom"
type="dot"
theme="dark"
></IcBadge>
</IcNavigationButton>
<IcNavigationButton
Expand Down

0 comments on commit 1d861c3

Please sign in to comment.