Skip to content

Commit

Permalink
Merge branch 'develop' into fix/namingGenderNames
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsJohansen87 authored Jan 17, 2024
2 parents 3ee85c0 + 76491c3 commit 4924cc8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/demo/public/catalogues/catalogue-dktk.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"key": "other",
"name": "Sonstiges / Intersexuell",
"description": "Sonstiges / Intersexuell"

},
{
"key": "unknown",
Expand Down
12 changes: 11 additions & 1 deletion packages/demo/src/styles/default/result-table.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,20 @@ lens-result-table {
}

lens-result-table::part(table-pagination-button) {
border: solid 1px var(--gray);
border: solid 1px var(--blue);
background: var(--white);
border-radius: var(--border-radius-small);
padding: var(--gap-xxs) var(--gap-s);
cursor: pointer;
}


lens-result-table::part(pagination-button-disabled) {
border: solid 1px var(--light-gray);
background: var(--white);
border-radius: var(--border-radius-small);
padding: var(--gap-xxs) var(--gap-s);
cursor: auto;
}

lens-result-table::part(info-button) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,18 @@ lens-info-button::part(info-button) {
height: 100%;
width: 38px;
background-color: var(--white);
border: solid 1px var(--light-blue);
border-radius: var(--border-radius-small);
border: 0;
}
lens-info-button::part(info-button):hover {background-color: #b8bfb8}
lens-info-button::part(info-button):active {
background-color: #585958;
transform: translateX(1px);
}
lens-info-button::part(info-button-title) {
font-family: var(--font-family);
}
Expand Down Expand Up @@ -148,8 +156,9 @@ lens-info-button::part(info-button-dialogue) {
<div class="info">
<lens-info-button
infoIconUrl="info-circle-svgrepo-com.svg"
noQueryMessage="Um eine Re-Identifizierung zu erschweren, werden Standortergebnisse modifiziert und auf Zehnerstellen gerundet. Meldet ein Standort keinen Treffer, wird für diesen null angezeigt."
showQuery={true}
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.`
]}
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,18 @@
<slot name="above-pagination"/>
<div part="table-pagination">
<button
part="table-pagination-button pagination-pagination-previous"
part="table-pagination-button pagination-pagination-previous
{activePage === 1 ? 'pagination-button-disabled' : ''}"
disabled={activePage === 1}
on:click={() => {
activePage = activePage - 1;
}}>&#8592;</button
>
<div part="table-pagination-pagenumber">{activePage}</div>
<button
part="table-pagination-button pagination-pagination-next"
disabled={activePage === Math.ceil(tableRowData.length / pageSize)}
part="table-pagination-button pagination-pagination-next
{activePage === Math.ceil(tableRowData.length / pageSize) || pageItems.length === 0 ? 'pagination-button-disabled' : ''}"
disabled={activePage === Math.ceil(tableRowData.length / pageSize)|| pageItems.length === 0}
on:click={() => {
activePage = activePage + 1;
}}>&#8594;</button
Expand Down

0 comments on commit 4924cc8

Please sign in to comment.