-
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.
add EDSelect
- Loading branch information
tal-rofe
committed
Aug 16, 2022
1 parent
921005a
commit 605000c
Showing
4 changed files
with
68 additions
and
101 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
78 changes: 29 additions & 49 deletions
78
apps/frontend/src/components/ui/EDSelect/EDSelect.module.scss
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,81 +1,61 @@ | ||
.container { | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: space-between; | ||
border-radius: 10px; | ||
box-shadow: (0 11.4496px 15.6131px #0000000d); | ||
inset-inline-end: 0; | ||
width: 200px; | ||
|
||
.selectedOptionsVisible { | ||
.buttonContainer { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
height: 100%; | ||
width: 100%; | ||
padding: 10px 14px; | ||
white-space: nowrap; | ||
background-color: #fefefe; | ||
border: 2px solid #e7e7e7; | ||
|
||
&--tooltipIsVisible { | ||
border-start-start-radius: 10px; | ||
border-start-end-radius: 10px; | ||
} | ||
|
||
&--tooltipIsInvisible { | ||
border-radius: 10px; | ||
} | ||
|
||
&__text { | ||
width: inherit; | ||
overflow: hidden; | ||
font-size: 1.5rem; | ||
font-weight: 360; | ||
color: #4b4a65; | ||
text-overflow: ellipsis; | ||
white-space: no-wrap; | ||
} | ||
|
||
.moreOptionsButton { | ||
&__arrowDown { | ||
width: 11px; | ||
height: 8px; | ||
fill: transparent; | ||
stroke: #202428; | ||
} | ||
|
||
&__arrowRight { | ||
width: 8px; | ||
height: 11px; | ||
fill: transparent; | ||
stroke: #202428; | ||
&__arrow { | ||
width: auto; | ||
height: 8px; | ||
fill: transparent; | ||
stroke: #202428; | ||
stroke-linecap: round; | ||
stroke-width: 2; | ||
transition: transform 0.3s ease; | ||
|
||
&--tooltipIsVisible { | ||
transform: rotate(90deg); | ||
} | ||
} | ||
} | ||
|
||
.selectedOptionsInvisible { | ||
position: absolute; | ||
top: 40px; | ||
z-index: 1; | ||
.optionsContainer { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
justify-content: space-between; | ||
padding: 10px 14px; | ||
white-space: nowrap; | ||
background-color: #fefefe; | ||
border-radius: 0 0 10px 10px; | ||
|
||
&__divider { | ||
width: 100%; | ||
margin-bottom: 9px; | ||
border: 1px solid #e7e7e7; | ||
} | ||
border: 2px solid #e7e7e7; | ||
border-top: none; | ||
border-end-start-radius: 10px; | ||
border-end-end-radius: 10px; | ||
|
||
&__option { | ||
width: calc(100% - 20px); | ||
overflow: hidden; | ||
font-size: 1.5rem; | ||
font-weight: 360; | ||
color: #4b4a65; | ||
text-align: left; | ||
text-overflow: ellipsis; | ||
white-space: no-wrap; | ||
} | ||
|
||
&__option:not(:last-child) { | ||
margin-bottom: 5px; | ||
} | ||
} | ||
} |
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
67 changes: 30 additions & 37 deletions
67
apps/frontend/src/components/ui/EDSelect/EDSelect.view.tsx
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