Skip to content

Commit

Permalink
Merge pull request #18 from samply/develop
Browse files Browse the repository at this point in the history
feat(catalogue): add heading and info button
  • Loading branch information
MatsJohansen87 authored Oct 26, 2023
2 parents 1cadd49 + 8f96657 commit 2607a94
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 11 deletions.
8 changes: 8 additions & 0 deletions packages/demo/src/AppCCP.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,14 @@
</div>
<div class="grid">
<div class="catalogue">
<h2>Suchkriterien</h2>
<lens-info-button
infoIconUrl="info-circle-svgrepo-com.svg"
message={[
`Bei Patienten mit mehreren onkologischen Diagnosen, können sich ausgewählte Suchkriterien nicht nur auf eine Erkrankung beziehen, sondern auch auf Weitere.`,
`Innerhalb einer Kategorie werden verschiedene Ausprägungen mit einer „Oder-Verknüpfung“ gesucht; bei der Suche über mehrere Kategorien mit einer „Und-Verknüpfung“.`
]}
/>
<lens-catalogue
toggleIconUrl="right-arrow-svgrepo-com.svg"
addIconUrl="long-right-arrow-svgrepo-com.svg"
Expand Down
58 changes: 47 additions & 11 deletions packages/demo/src/ccp.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,18 @@ footer {
overflow-y: scroll;
height: 100vh;
position: sticky;
top: 0;
top: 40px;
}

.catalogue h2 {
margin: 0;
margin-bottom: var(--gap-s);
font-size: var(--font-size-l);
font-weight: 400;
color: var(--dark-gray);
}


.charts {
display: grid;
grid-template-columns: repeat(4, 1fr);
Expand Down Expand Up @@ -239,16 +248,9 @@ footer {
* Overrides
*/

lens-catalogue::part(autocomplete-formfield-input):focus {
border-color: var(--light-blue);
}
lens-catalogue::part(query-add-button) {
background-color: var(--light-blue);
}
lens-catalogue::part(number-input-formfield):focus {
border-color: var(--light-blue);
outline: none;
}
/**
Searchbars
*/
lens-search-bar-multiple::part(lens-searchbar-chip) {
background-color: var(--light-blue);
}
Expand All @@ -268,6 +270,26 @@ lens-search-button::part(lens-search-button) {
background-color: var(--light-blue);
}


/**
Catalogue
*/

lens-catalogue::part(lens-catalogue) {
padding-left: 8px;
}

lens-catalogue::part(autocomplete-formfield-input):focus {
border-color: var(--light-blue);
}
lens-catalogue::part(query-add-button) {
background-color: var(--light-blue);
}
lens-catalogue::part(number-input-formfield):focus {
border-color: var(--light-blue);
outline: none;
}

.chart-diagnosis lens-chart::part(chart-canvas) {
width: 100%;
max-height: 1000px;
Expand Down Expand Up @@ -332,3 +354,17 @@ lens-info-button::part(info-button) {
lens-info-button::part(info-button-icon) {
width: 21px;
}

.catalogue lens-info-button::part(info-button){
height: 38px;
padding: 0;
top: var(--gap-xs);
right: var(--gap-xs);
border: none;
position: absolute;
}

.catalogue lens-info-button::part(info-button-dialogue){
max-width: 300px;
text-align: left;
}

0 comments on commit 2607a94

Please sign in to comment.