Skip to content

Commit

Permalink
Merge pull request #39 from samply/fix/info-button
Browse files Browse the repository at this point in the history
fix(result summary): change info button to svelte component
  • Loading branch information
torbrenner authored Jan 23, 2024
2 parents 9fb5cec + 17451c9 commit 28d7a07
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
# Visit: https://github.com/samply/github-workflows/blob/main/.github/workflows/docker-ci.yml, for more information
uses: samply/github-workflows/.github/workflows/docker-ci.yml@main
with:
image-name: "samply/lens-web-components"
image-name: "samply/lens"
build-args: |
TARGET_ENVIRONMENT=staging
# This passes the secrets from calling workflow to the called workflow
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
# Visit: https://github.com/samply/github-workflows/blob/main/.github/workflows/docker-ci.yml, for more information
uses: samply/github-workflows/.github/workflows/docker-ci.yml@main
with:
image-name: "samply/lens-web-components"
image-name: "samply/lens"
build-args: |
TARGET_ENVIRONMENT=production
# This passes the secrets from calling workflow to the called workflow
Expand Down
32 changes: 31 additions & 1 deletion packages/demo/src/styles/default/results-overview.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,34 @@ lens-result-summary {
align-items: center;
justify-content: space-around;
gap: 10px
}
}

lens-result-summary::part(info-button) {
position: relative;
cursor: pointer;
height: 100%;
border: none;
background-color: var(--white);
border-radius: var(--border-radius-small);
}
lens-result-summary::part(info-button-icon) {
width: 16px;
}

lens-result-summary::part(info-button-title) {
font-family: var(--font-family);
}

lens-result-summary::part(info-button-dialogue) {
position: absolute;
border: none;
background-color: var(--white);
width: max-content;
max-width: 30vw;
z-index: 100;
padding: var(--gap-s);
top: 40px;
left: 0px;
border: solid 1px var(--light-blue);
border-radius: var(--border-radius-small);
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ lens-info-button::part(info-button-dialogue) {
getAggregatedPopulationForStratumCode,
} from "../../stores/response";
import type { ResponseStore } from "../../types/backend";
import InfoButtonComponent from "../buttons/InfoButtonComponent.wc.svelte";
let options: any = {};
Expand Down Expand Up @@ -154,7 +155,7 @@ lens-info-button::part(info-button-dialogue) {
</h4>
</div>
<div class="info">
<lens-info-button
<InfoButtonComponent
infoIconUrl="info-circle-svgrepo-com.svg"
message={[
`Um eine Re-Identifizierung zu erschweren, werden Standortergebnisse modifiziert und auf Zehnerstellen gerundet. Meldet ein Standort keinen Treffer, wird für diesen null angezeigt.`
Expand Down

0 comments on commit 28d7a07

Please sign in to comment.