-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UXPT-4816] Add close button to banner #1363
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1363 +/- ##
==========================================
+ Coverage 94.71% 94.96% +0.24%
==========================================
Files 195 195
Lines 2309 2324 +15
Branches 411 416 +5
==========================================
+ Hits 2187 2207 +20
+ Misses 66 61 -5
Partials 56 56
☔ View full report in Codecov by Sentry. |
const closeButton = container.querySelector('button') | ||
expect(closeButton).toBeTruthy() | ||
closeButton.click() | ||
expect(spyOnClose).toBeCalled() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -39,6 +40,47 @@ const CustomButton = styled(Button)` | |||
text-decoration: ${(props) => (props.buttonTextUnderline ? 'underline' : 'none')}; | |||
` | |||
|
|||
const BannerContent = styled(Box)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flex maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sdalonzo Using Box here should be more correct. Using Flex will make all the items occupy a whole line. It depends on the design.
Ticket
https://priceline.atlassian.net/browse/UXPT-4816
Description
Add close button and onClose function to the GenericBanner
Image