Skip to content

Commit 0587b46

Browse files
authored
Merge pull request #1401 from carhartlewis/lewis/comp-tweak-ui-fixes
refactor: standardize color usage across components
2 parents 284b9fb + 8b7b556 commit 0587b46

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

apps/app/src/app/(app)/[orgId]/people/[employeeId]/components/EmployeeTasks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const EmployeeTasks = ({
131131
>
132132
<p className="font-medium">{policy.name}</p>
133133
{policy.response === 'pass' ? (
134-
<div className="flex items-center gap-1 text-green-600">
134+
<div className="flex items-center gap-1 text-primary">
135135
<CheckCircle2 size={16} />
136136
<span>Pass</span>
137137
</div>

apps/app/src/app/(app)/[orgId]/people/devices/components/HostDetails.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ export const HostDetails = ({ host, onClose }: { host: Host; onClose: () => void
2222
key={policy.id}
2323
className={cn(
2424
'hover:bg-muted/50 flex items-center justify-between rounded-md border border-l-4 p-3 shadow-sm transition-colors',
25-
policy.response === 'pass' ? 'border-l-green-500' : 'border-l-red-500',
25+
policy.response === 'pass' ? 'border-l-primary' : 'border-l-red-500',
2626
)}
2727
>
2828
<p className="font-medium">{policy.name}</p>
2929
{policy.response === 'pass' ? (
30-
<div className="flex items-center gap-1 text-green-600">
30+
<div className="flex items-center gap-1 text-primary">
3131
<CheckCircle2 size={16} />
3232
<span>Pass</span>
3333
</div>

apps/app/src/components/status-indicator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const STATUS_COLORS: Record<StatusType, string> = {
3737
done: 'bg-primary',
3838

3939
// Completed/Done - Blue
40-
closed: 'bg-primary dark:bg-blue-400',
40+
closed: 'bg-primary',
4141

4242
// Neutral - Gray
4343
archived: 'bg-gray-500 dark:bg-gray-400',

apps/portal/src/app/(app)/(home)/[orgId]/policy/[policyId]/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ export default async function PolicyPage({
6363

6464
<Card className="shadow-md">
6565
{isAccepted && (
66-
<div className="bg-green-50 dark:bg-green-950/20 border-green-200 dark:border-green-800 mb-4 flex items-center gap-2 rounded-t-xs border p-3">
67-
<Check className="text-green-600 dark:text-green-400 h-5 w-5" />
68-
<span className="text-green-800 dark:text-green-300 text-sm font-medium">
66+
<div className="bg-green-50 border-green-200 mb-4 flex items-center gap-2 rounded-t-xs border p-3">
67+
<Check className="text-green-600 h-5 w-5" />
68+
<span className="text-green-800 text-sm font-medium">
6969
You have accepted this policy
7070
</span>
7171
</div>
@@ -79,7 +79,7 @@ export default async function PolicyPage({
7979
)}
8080
</CardHeader>
8181
<CardContent>
82-
<div className="prose dark:prose-invert max-w-none">
82+
<div className="prose max-w-none">
8383
<PolicyViewer content={policy.content} />
8484
</div>
8585
{policy.updatedAt && (

packages/ui/src/components/editor/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const Editor = ({
5858
immediatelyRender: false,
5959
editorProps: {
6060
attributes: {
61-
class: `prose prose-lg dark:prose-invert prose-headings:font-title font-default focus:outline-hidden max-w-full ${className || ''}`,
61+
class: `prose prose-lg prose-headings:font-title font-default focus:outline-hidden max-w-full ${className || ''}`,
6262
},
6363
},
6464
onUpdate: ({ editor }) => {

0 commit comments

Comments
 (0)