-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from DigitalNZ/pm/list-page
IMPROVE PIPELINE LIST PAGE: As Tim, I want to be able to search across Pipelines, so I can find examples and get where I need to go as easily as possible.
- Loading branch information
Showing
27 changed files
with
390 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const clearButtons = document.querySelectorAll("[data-clear-field]"); | ||
|
||
clearButtons.forEach(function (clearButton) { | ||
clearButton.addEventListener("click", (event) => { | ||
const form = event.target.closest("form"); | ||
const fieldNameToClear = event.target.dataset.clearField; | ||
const fieldToClear = form.querySelector( | ||
`input[name="${fieldNameToClear}"]` | ||
); | ||
|
||
fieldToClear.value = ""; | ||
form.submit(); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const selectElements = document.querySelectorAll( | ||
'[data-submitting-select="true"]' | ||
); | ||
|
||
selectElements.forEach(function (selectElement) { | ||
const form = selectElement.closest("form"); | ||
|
||
selectElement.addEventListener("change", () => { | ||
form.submit(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// this is used to make a card which has interactive elements | ||
// clickable without breaking a11y | ||
// See https://inclusive-components.design/cards/ | ||
.card--clickable { | ||
&:hover { | ||
border-color: $primary; | ||
} | ||
|
||
.card__link { | ||
color: var(--bs-card-color); | ||
text-decoration: none; | ||
|
||
&::after { | ||
content: ""; | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.harvest-card { | ||
@include element('actions') { | ||
position: absolute; | ||
right: 0rem; | ||
top: 0; | ||
bottom: 0; | ||
margin: auto; | ||
height: 2.25rem; | ||
|
||
&:hover { | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
@include element('actions-toggle') { | ||
border: none; | ||
} | ||
|
||
@include element('action') { | ||
padding: .625rem 1rem; | ||
} | ||
|
||
@include element('right-arrow') { | ||
position: absolute; | ||
right: -1.5rem; | ||
top: 0; | ||
bottom: 0; | ||
width: 1.25rem; | ||
height: 1.25rem; | ||
margin: auto; | ||
color: $primary; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.search { | ||
position: relative; | ||
|
||
@include element('label') { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
padding: .4rem $form-floating-padding-x; | ||
overflow: hidden; | ||
text-align: start; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
pointer-events: none; | ||
border: 1px solid transparent; | ||
} | ||
|
||
&__input { | ||
width: 22rem; | ||
|
||
&::placeholder { | ||
color: transparent; | ||
} | ||
|
||
&:focus ~ .search__label, &:not(:placeholder-shown) ~ .search__label { | ||
display: none; | ||
} | ||
} | ||
|
||
@include element('clear') { | ||
position: absolute; | ||
top: 0; | ||
right: .5rem; | ||
margin-top: .3rem; | ||
|
||
--bs-btn-padding-y: .25rem; | ||
--bs-btn-padding-x: .5rem; | ||
--bs-btn-font-size: .75rem; | ||
--bs-btn-border-color: #{$lynx-white}; | ||
--bs-btn-bg: #{$lynx-white}; | ||
--bs-btn-color: #{$primary}; | ||
--bs-btn-hover-color: #{$primary}; | ||
--bs-btn-hover-bg: #{shade-color($lynx-white, 10%)}; | ||
--bs-btn-hover-border-color: #{shade-color($lynx-white, 10%)}; | ||
|
||
> .bi-plus::before { | ||
transform: rotate(45deg); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.form-label { | ||
.form-label, .col-form-label { | ||
font-weight: 600; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.