-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(genqa): add collapsible height option to the component (#4817)
[SVCC-4450](https://coveord.atlassian.net/browse/SVCC-4450) - Add new option `max-collapsed-height` to the genQA component. - Using relative dimensions to be consistent. - We keep `16 rem` as default value. - The accepted range of the height is from `9rem` to `32rem`, otherwise the default value is applied. - `--atomic-crga-collapsed-height` was already introduced in the css, just using it. (in `generated-answer.pcss`) **When `max-collapsed-height=9`** <img width="848" alt="Screenshot 2025-01-03 at 3 25 35 PM" src="https://github.com/user-attachments/assets/5d16a88d-d792-403d-8557-d9227cd08382" /> **When `max-collapsed-height=32`** <img width="479" alt="Screenshot 2025-01-03 at 3 26 43 PM" src="https://github.com/user-attachments/assets/90353dad-7b77-40c1-8033-a8d7d74a293a" /> **When `max-collapsed-height` outside of the range, back to default one** <img width="730" alt="Screenshot 2025-01-03 at 3 27 22 PM" src="https://github.com/user-attachments/assets/5f685e87-b62b-47f4-a1c2-667611603ef2" /> [SVCC-4450]: https://coveord.atlassian.net/browse/SVCC-4450?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information
Showing
4 changed files
with
109 additions
and
11 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