Skip to content

Commit

Permalink
fix: use appropriate design tokens for utility classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Dec 27, 2024
1 parent 2b762f9 commit 3312234
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/app/[locale]/components/FormProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ const FormProgress = ({ children }: FormProgressProps) => {

<div className="flex flex-col gap-3 pb-2">
{children}
<div className="overflow-hidden w-full background-gray-200">
<div className="overflow-hidden w-full disabled-fill-1">
<div
style={{
width: `${percentage}%`,
}}
className="h-2 background-primary"
className="h-2 primary-fill-1"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const FeatureListItem = ({

// TODO: iets van een label toevoegen zodat voor een SR duidelijk wordt om welke lantaarnpaal, adres etc het gaat?
return featureDescription ? (
<li className="py-4 border-t bordercolor-gray-200">
<li className="py-4 border-t disabled-border-1">
<FormField
className="flex flex-row items-center gap-2"
onFocus={(e) => {
Expand Down
14 changes: 5 additions & 9 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -158,20 +158,16 @@
}

/* colors */
.background-gray-200 {
background-color: var(--basis-color-gray-200);
.disabled-fill-1 {
background-color: var(--basis-color-disabled-fill-1);
}

.background-primary {
.primary-fill-1 {
background-color: var(--basis-color-primary-fill-1);
}

.background-white {
background-color: var(--basis-color-white);
}

.bordercolor-gray-200 {
border-color: var(--basis-color-gray-200);
.disabled-border-1 {
border-color: var(--basis-color-disabled-fill-1);
}

/* spinner */
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/Divider.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const Divider = () => {
return <div className="border-t-2 bordercolor-gray-200"></div>
return <div className="border-t-2 disabled-border-1"></div>
}

0 comments on commit 3312234

Please sign in to comment.