Skip to content

Commit

Permalink
Merge pull request #4425 from webkom/ivarnakken/aba-783-standardize-a…
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarnakken committed Feb 2, 2024
2 parents 56cd6b9 + 5b17d27 commit b039423
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/components/EventItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const eventStatusObject = (event: ListEvent): statusIconProps => {
return {
status: 'Admitted',
icon: 'checkmark-circle-outline',
color: 'var(--color-green-6)',
color: 'var(--success-color)',
tooltip: 'Du er påmeldt',
} as statusIconProps;
}
Expand Down
4 changes: 4 additions & 0 deletions app/components/Poll/Poll.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,7 @@
pointer-events: none;
}
}

.success {
color: var(--success-color);
}
4 changes: 1 addition & 3 deletions app/components/Poll/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ const Poll = ({
<Icon
name="checkmark-circle-outline"
size={20}
style={{
color: 'var(--color-green-6)',
}}
className={styles.success}
/>
</Flex>
)}
Expand Down
2 changes: 1 addition & 1 deletion app/components/Upload/UploadImage.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}

.dragAccept .placeholderContainer {
border: 3px dashed var(--color-green-6);
border: 3px dashed var(--success-color);
}

.dragReject .placeholderContainer {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/bdb/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const NonEventContactStatusConfig: Record<
},
[NonEventContactStatus.INTERESTED]: {
displayName: 'Interessert',
color: 'var(--color-green-6)',
color: 'var(--success-color)',
textColor: '#000',
},
[NonEventContactStatus.NOT_INTERESTED]: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

.greenIcon {
font-size: 1.4em;
color: var(--color-green-6);
color: var(--success-color);

&:hover {
color: var(--color-green-7);
Expand Down
2 changes: 1 addition & 1 deletion app/routes/events/components/Stripe.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}

.success {
background: var(--color-green-6);
background: var(--success-color);
color: var(--color-absolute-white);
text-align: center;
padding: 5px 10px;
Expand Down
2 changes: 1 addition & 1 deletion app/routes/photos/components/Overview.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
}

.iconSelected {
color: var(--color-green-6);
color: var(--success-color);
}

.createState {
Expand Down
4 changes: 4 additions & 0 deletions app/routes/polls/components/PollsList.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
.heading {
margin-left: 15px;
}

.success {
color: var(--success-color);
}
4 changes: 1 addition & 3 deletions app/routes/polls/components/PollsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ const PollsList = () => {
<Icon
name="checkmark-circle-outline"
size={20}
style={{
color: 'var(--color-green-6)',
}}
className={styles.success}
/>
</>
) : (
Expand Down
2 changes: 1 addition & 1 deletion app/routes/users/components/Penalties.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

.success {
color: var(--color-green-6);
color: var(--success-color);
}

.successMessage {
Expand Down
4 changes: 4 additions & 0 deletions app/styles/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
--lego-red-color: var(--color-red-5);
--lego-red-color-hover: var(--color-red-6);
--lego-link-color: var(--lego-red-color);

--danger-color: var(--color-red-6);
--success-color: var(--color-green-6);

--lego-max-width: 1100px;
--lego-default-padding: 2rem;
Expand Down Expand Up @@ -147,6 +149,8 @@

--lego-red-color: var(--color-red-7);

--success-color: var(--color-green-5);

--color-event-black: #ddd;
--color-white: #181818;
--color-black: #fff;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

--button-success-background: var(--color-green-4);
--button-success-background-hover: var(--color-green-5);
--button-success-background-active: var(--color-green-6);
--button-success-background-active: var(--success-color);
--button-success-box-shadow-focus: #2da44e44;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/lego-bricks/src/components/Icon/Icon.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

.success {
composes: clickable;
color: var(--color-green-6);
color: var(--success-color);

&:hover,
&:focus-visible {
Expand Down
4 changes: 4 additions & 0 deletions packages/lego-bricks/src/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
--lego-red-color: var(--color-red-5);
--lego-red-color-hover: var(--color-red-6);
--lego-link-color: var(--lego-red-color);

--danger-color: var(--color-red-6);
--success-color: var(--color-green-6);

--lego-max-width: 1100px;
--lego-default-padding: 2rem;
Expand Down Expand Up @@ -146,6 +148,8 @@

--lego-red-color: var(--color-red-7);

--success-color: var(--color-green-5);

--color-event-black: #ddd;
--color-white: #181818;
--color-black: #fff;
Expand Down

0 comments on commit b039423

Please sign in to comment.