Skip to content

Commit

Permalink
Remove use of old foreground colors in grommet-app
Browse files Browse the repository at this point in the history
  • Loading branch information
taysea committed Oct 28, 2024
1 parent 2992001 commit 5dac863
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ export const DashboardCard = ({
) : external ? (
<ShareRounded
a11yTitle={`Go to ${title}`}
color="foreground-brand-default"
color="icon-primary"
data-icon={
!inline && workspace === 'Acme Next' ? 'dashboard' : ''
}
/>
) : (
<LinkNext
a11yTitle={`Go to ${title}`}
color="foreground-brand-default"
color="icon-primary"
data-icon={
!inline && workspace === 'Acme Next' ? 'dashboard' : ''
}
Expand Down
18 changes: 5 additions & 13 deletions sandbox/grommet-app/src/pages/next/QuickActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,27 @@ export const QuickActions = ({ edit = true, icons }) => {
{skeleton ? (
<Skeleton height={theme.text.medium.size} />
) : (
<Anchor
icon={icons && <ChapterAdd color="foreground-brand-default" />}
label="Add devices"
href="#"
/>
<Anchor icon={icons && <ChapterAdd />} label="Add devices" href="#" />
)}
{skeleton ? (
<Skeleton height={theme.text.medium.size} />
) : (
<Anchor
icon={icons && <Cloud color="foreground-brand-default" />}
icon={icons && <Cloud />}
label="Add service subscriptions"
href="#"
/>
)}
{skeleton ? (
<Skeleton height={theme.text.medium.size} />
) : (
<Anchor
icon={icons && <UserAdd color="foreground-brand-default" />}
label="Add users"
href="#"
/>
<Anchor icon={icons && <UserAdd />} label="Add users" href="#" />
)}
{skeleton ? (
<Skeleton height={theme.text.medium.size} />
) : (
<Anchor
icon={icons && <Stakeholder color="foreground-brand-default" />}
icon={icons && <Stakeholder />}
label="Assign roles"
href="#"
/>
Expand All @@ -64,7 +56,7 @@ export const QuickActions = ({ edit = true, icons }) => {
<Skeleton height={theme.text.medium.size} />
) : (
<Anchor
icon={icons && <MapLocation color="foreground-brand-default" />}
icon={icons && <MapLocation />}
label="Create location"
href="#"
/>
Expand Down

0 comments on commit 5dac863

Please sign in to comment.