-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui-core: add close button to pickers
- use the Modal component to display the calendar picker to harmonize with tolerance and time picker - add a modal.css file with the modal base styles to avoid repeating the code - add a close button to the Modal component Signed-off-by: SharglutDev <[email protected]>
- Loading branch information
1 parent
b13f117
commit ab0f830
Showing
7 changed files
with
42 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ | |
@import './timePicker.css'; | ||
@import './tokenInput.css'; | ||
@import './tolerancePicker.css'; | ||
@import './modal.css'; |
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 @@ | ||
.modal-overlay { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
z-index: 1000; | ||
} | ||
|
||
.modal-content { | ||
background-color: theme('colors.white.100'); | ||
border-radius: 0.5rem; | ||
box-shadow: | ||
0px 1px 0px rgba(255, 255, 255, 1) inset, | ||
0px 4px 7px -3px rgba(24, 68, 239, 0.19), | ||
0px 1px 3px rgba(49, 46, 43, 0.2); | ||
position: absolute; | ||
|
||
.close-button { | ||
position: absolute; | ||
top: 16px; | ||
right: 16px; | ||
color: theme('colors.grey.50'); | ||
|
||
&:hover { | ||
color: theme('colors.grey.90'); | ||
} | ||
|
||
&:active { | ||
color: theme('colors.grey.20'); | ||
} | ||
} | ||
} |
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