-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAY-1485] Fix overflow container bug by using padding instead of ou…
…tline (#3807) **What does this PR do?** In [PLAY-829](https://runway.powerhrg.com/backlog_items/PLAY-829), we removed the buffer to fix content alignment issues and added an outline so the content would not 'jump' (which was handled originally by the buffer). - Fix overflow container bug by using padding instead of outline - Subtract 1px of padding in the selected label container to account for the extra 1px border of selected label - Do this for all padding sizes xxs to xl - For "selectable cards", keep an outline as the content is different (a padding 0 div wrapped around flex and cards) - Fix the dark mode for rails and apply it to the card **Screenshots:** Screenshots to visualize your addition/change ![Screenshot 2024-10-30 at 10 25 07 AM](https://github.com/user-attachments/assets/68b7efcf-3775-4d15-b70d-cce39b40f698) ![Screenshot 2024-10-23 at 9 15 54 AM](https://github.com/user-attachments/assets/a447bd7b-2bbb-4aa0-97b8-d7804bc7a19c) **How to test?** Steps to confirm the desired behavior: 1. Go to the Playbook Website 2. Go to the Selectable Card kit 3. Click the cards 4. Make sure the content does not "jump" or shift around and stays in place 5. Go to the Nitro test env 6. Use the Impersonation Flyout 7. Search by title so multiple results show (e.g., "Nitro Quality Ninja") 8. The selected card should not be cut off 9. If you select a card, the content should not "jump" or shift around 10. Since there are multiple employees, everything should fit in the overlay- the impersonate and cancel button should fit on the overlay and not be below a scroll. #### Checklist: - [x] **LABELS** Add a label: `enhancement`, `bug`, `improvement`, `new kit`, `deprecated`, or `breaking`. See [Changelog & Labels](https://github.com/powerhome/playbook/wiki/Changelog-&-Labels) for details. - [x] **DEPLOY** I have added the `milano` label to show I'm ready for a review.
- Loading branch information
Showing
5 changed files
with
75 additions
and
5 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
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