Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use appropriate design tokens for utility classes #353

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
}
Loading