-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(genqa): new feedback modal (#4092)
**Feedback Modal Full width** ![Screenshot 2024-06-14 at 3 24 25 PM](https://github.com/coveo/ui-kit/assets/119955059/74cf8b69-d580-4cc9-b6f0-ceab3a393ed9) **Hover buttons state** ![Screenshot 2024-06-14 at 3 27 25 PM](https://github.com/coveo/ui-kit/assets/119955059/d4d8ecb9-1e9b-4cb9-8f75-257133a0ebb4) **Selected buttons state** ![Screenshot 2024-06-14 at 3 27 36 PM](https://github.com/coveo/ui-kit/assets/119955059/d34200c3-b422-4379-ad78-85bf66383940) **Required field error after submit state** ![Screenshot 2024-06-14 at 3 27 50 PM](https://github.com/coveo/ui-kit/assets/119955059/26e9cea6-e941-4f46-bebc-9d7cba58cbcf) **Feedback modal mobile version** ![Screenshot 2024-06-14 at 3 28 12 PM](https://github.com/coveo/ui-kit/assets/119955059/273a8083-f112-4e91-8e0d-9bed778489e9) **Feedback modal mobile version with error** <img width="441" alt="Screenshot 2024-07-11 at 11 21 00 AM" src="https://github.com/coveo/ui-kit/assets/119955059/e5337797-f3b5-4d2f-a78a-908a892d2286"> **Sumbit Events** ![Screenshot 2024-07-05 at 10 39 36 AM](https://github.com/coveo/ui-kit/assets/119955059/c7d24668-58dc-4f73-8c77-1f840cfa10de) **DEMO** https://github.com/coveo/ui-kit/assets/119955059/34dc5da7-fbb6-4e55-b0ed-4a4cecb2f179
- Loading branch information
Showing
8 changed files
with
843 additions
and
190 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
60 changes: 60 additions & 0 deletions
60
...rated-answer/atomic-generated-answer-feedback/atomic-generated-answer-feedback-modal.pcss
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 +1,61 @@ | ||
@import '../../../../global/global.pcss'; | ||
|
||
@define-mixin mobile-feedback-modal { | ||
&::part(container) { | ||
@apply w-auto min-w-full; | ||
} | ||
|
||
&::part(header), | ||
&::part(body), | ||
&::part(footer) { | ||
@apply max-w-full; | ||
} | ||
[part='buttons'] { | ||
.required-label { | ||
@apply text-sm; | ||
} | ||
} | ||
[part='form'] { | ||
.answer-evaluation { | ||
@apply block; | ||
} | ||
|
||
.options { | ||
@apply mt-2; | ||
} | ||
} | ||
[part='modal-header'] { | ||
.hide { | ||
@apply hidden; | ||
} | ||
} | ||
} | ||
|
||
[part='generated-answer-feedback-modal'] { | ||
&::part(container) { | ||
@apply min-w-[42.5rem]; | ||
} | ||
|
||
&::part(header), | ||
&::part(body), | ||
&::part(footer) { | ||
@apply max-w-[42.5rem]; | ||
} | ||
|
||
@screen mobile-only { | ||
@mixin mobile-feedback-modal; | ||
} | ||
} | ||
|
||
[part='form'] { | ||
.active { | ||
@apply border-primary-light text-primary-light; | ||
background-color: var(--atomic-primary-background); | ||
} | ||
.text-error-red { | ||
color: var(--atomic-inline-code); | ||
} | ||
.required { | ||
@apply flex; | ||
} | ||
} |
Oops, something went wrong.