-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI/improvements #4036
Merged
Merged
UI/improvements #4036
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2784ebe
Removed repeated styles and improved padding
FuriousLlama 201c4d6
Updated input to match styled mocups and icons
FuriousLlama f304ced
Updated Styling for multiselect and contact input
FuriousLlama 14b5cfb
linting
FuriousLlama ea5901b
Regenerated snaps
FuriousLlama 30e6e8c
Updated remove button alignment on project subform
FuriousLlama d71ffa3
Merge branch 'dev' into ui/improvements
FuriousLlama b321ffb
merge
FuriousLlama 358edd7
Merge branch 'dev' into ui/improvements
FuriousLlama File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,6 +1,33 @@ | ||
@import '@/assets/scss/colors.scss'; | ||
|
||
.form-select { | ||
align-items: center; | ||
|
||
// Selects have an extra padding added by the browser. Removing and manually center it prevents letter clipping. | ||
padding-top: 0px; | ||
padding-bottom: 0px; | ||
|
||
|
||
// Custom dropdown icon requires clearning the browser's style | ||
-webkit-appearance: none; | ||
-moz-appearance: none; | ||
appearance: none; | ||
// Same path as MdArrowDropDown | ||
background-image: url("data:image/svg+xml,<svg stroke='currentColor' fill='currentColor' stroke-width='0' viewBox='0 0 24 24' class='sc-jIILKH kTbtSw' height='1.6rem' width='1.6rem' xmlns='http://www.w3.org/2000/svg'><path fill='none' d='M0 0h24v24H0z'></path><path d='M7 10l5 5 5-5z'></path></svg>"); | ||
background-repeat: no-repeat; | ||
// sizes below set by trial-and-error to look good | ||
background-position-x: calc(100% - 0.8rem); | ||
background-position-y: 6px; | ||
padding-right: 3.5rem; | ||
|
||
min-width: 9.5rem; | ||
|
||
.option { | ||
padding: 0.5rem; | ||
} | ||
} | ||
|
||
.form-select:not(.is-invalid), | ||
.form-control:not(.is-invalid) { | ||
border: 0.1rem solid #606060; | ||
} |
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ import styled from 'styled-components'; | |
|
||
import LoadingBackdrop from '@/components/common/LoadingBackdrop'; | ||
import SidebarFooter from '@/features/mapSideBar/shared/SidebarFooter'; | ||
import { StyledFormWrapper } from '@/features/mapSideBar/shared/styles'; | ||
import { getCancelModalProps, useModalContext } from '@/hooks/useModalContext'; | ||
|
||
import AcquisitionAgreementForm from '../form/AcquisitionAgreementForm'; | ||
|
@@ -81,16 +82,6 @@ const UpdateAcquisitionAgreementForm: React.FunctionComponent< | |
|
||
export default UpdateAcquisitionAgreementForm; | ||
|
||
const StyledFormWrapper = styled.div` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This class was repeated multiple times. We need to keep an eye out for simplification when possible. |
||
display: flex; | ||
flex-direction: column; | ||
flex-grow: 1; | ||
text-align: left; | ||
height: 100%; | ||
overflow-y: auto; | ||
padding-bottom: 1rem; | ||
`; | ||
|
||
const StyledContent = styled.div` | ||
background-color: ${props => props.theme.css.highlightBackgroundColor}; | ||
`; | ||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: use rem.