Skip to content

Commit

Permalink
Merge pull request #170 from cabcookie:improve-person-mention
Browse files Browse the repository at this point in the history
Bessere Visualisierung von Akkordions
  • Loading branch information
cabcookie authored Aug 7, 2024
2 parents b944bbf + 1d1b3cc commit 765a2ee
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions components/crm/group-projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const GroupCrmProjects: FC<GroupCrmProjectsProps> = ({
),
map((company: string) => (
<DefaultAccordionItem
key={`${propertyName}-${company}`}
value={`${propertyName}-${company}`}
triggerTitle={company}
badge={
Expand Down
4 changes: 3 additions & 1 deletion components/ui-elements/accordion/DefaultAccordionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ const DefaultAccordionItem = forwardRef<
)(triggerSubTitle)}
</AccordionTriggerSubTitle>
</AccordionTrigger>
<AccordionContent className="my-2">{children}</AccordionContent>
<AccordionContent className="my-2 bg-[--context-color-bg]">
{children}
</AccordionContent>
</AccordionItem>
)
);
Expand Down
6 changes: 5 additions & 1 deletion contexts/ContextContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ export const ContextContextProvider: FC<ContextContextProviderProps> = ({
if (!context) return;
document.documentElement.style.setProperty(
"--context-color",
`hsl(var(--context-color-${context}))`
`rgb(var(--context-color-${context}))`
);
document.documentElement.style.setProperty(
"--context-color-bg",
`rgba(var(--context-color-${context}), 0.05)`
);
document.documentElement.style.setProperty(
"--context-color-hover",
Expand Down
4 changes: 2 additions & 2 deletions docs/releases/next.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Einfaches Kopieren von CRM Projekten (Version :VERSION)
# Bessere Visualisierung von Akkordions (Version :VERSION)

- Jedes CRM Projekt hat beim Link zum Projekt (SFDC ID) auch eine Schaltfläche, um den Titel der Opportunity und dessen Salesforce Link in die Zwischenablage zu kopieren.
- Wenn Akkordions aufgeklappt werden, erhalten sie jetzt einen leichten transparenten Hintergrund. Wenn darüber weitere Akkordions geöffnet werden, wird die Transparenz immer weniger und somit sollte sich leichter unterscheiden lassen, welcher Akkordion Kopf zu welchem Inhalt gehört.
10 changes: 6 additions & 4 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@
--notes-margin: 0.2em;
--notes-heading-mt: 1em;

--context-color-family: 55 85% 65%;
--context-color-hobby: 98 80% 62%;
--context-color-work: 181 80% 62%;
--context-color-family: 221, 239, 104;
--context-color-hobby: 151, 239, 92;
--context-color-work: 92, 239, 221;
--context-color: rgb(var(--context-color-family));
--context-color-bg: rgba(var(--context-color-family), 0.05);

--context-color-family-secondary: 55 85% 90%;
--context-color-hobby-secondary: 98 80% 87%;
--context-color-work-secondary: 181 80% 87%;
--context-color: hsl(var(--context-color-family));
--context-color-secondary: hsl(var(--context-color-family-secondary));

--context-color-family-hover: 55 68% 65%;
Expand Down

0 comments on commit 765a2ee

Please sign in to comment.