-
Notifications
You must be signed in to change notification settings - Fork 159
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
fix(masthead-v2): fix masthead-contact & add DDO for testing #9359
fix(masthead-v2): fix masthead-contact & add DDO for testing #9359
Conversation
Deploy preview created for package Built with commit: 7ba09982df9ef714dac59f000b9b7c415158547a |
Deploy preview created for package Built with commit: 7ba09982df9ef714dac59f000b9b7c415158547a |
Deploy preview created for package Built with commit: 7ba09982df9ef714dac59f000b9b7c415158547a |
Deploy preview created for package Built with commit: 7ba09982df9ef714dac59f000b9b7c415158547a |
Deploy preview created for package Built with commit: 7ba09982df9ef714dac59f000b9b7c415158547a |
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.
This looks good from a code perspective. Waiting for the CodeSandbox example to do functional testing.
Deploy preview created for package Built with commit: 7ba09982df9ef714dac59f000b9b7c415158547a |
CodeSandbox example deploy preview is ready for testing - https://webcomponents-codesandbox.s3-web.us-east.cloud-object-storage.appdomain.cloud/deploy-previews/9359/masthead/index.html |
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.
@proeung This looks good and is working as expected. Would love if @oliviaflory could also take a peek at it
@jkaeser @proeung mostly there! I like that when you have a mega menu open and then select the contact us button, the mega menu collapses/closed. Questions that we should run by the accessibility team:
|
@oliviaflory Thanks for your review! What you've outlined makes sense and is great for usability, however, it's out of scope from this issue (#9360) and one that I'm not sure if it's feasible for Phase 1. For this early Oct launch, we're just trying to prioritize some of the big line item bugs seen not just within the components, but other bugs that arise in the platform integrations (eg. AEM, Drupal, etc) and this one will most likely go into Phase 2 work. I've created a new ticket to capture your feedback along with the accessibility concerns, which we can revisit for Phase 2. Also, as far as I'm aware the global masthead will be launched without the contact button enabled. GH issue: #9369 |
…design-system#9359) ### Related Ticket(s) carbon-design-system#9360 ### Description - This PR fixes the issue where the "Contact" CTA is not initializing the contact module's Let's Talk module when the `has-contact` attribute is set to `true`. ### Changelog **Changed** - Update the `Masthead` component CodeSandbox to include a test `DDO` and `cm-app.min.js` script so that we can verify that the behavior is working as expected. https://user-images.githubusercontent.com/1815714/189696785-e00a7997-7c33-4322-ad6a-008eefacda45.mov ### Testing Instructions - Visit the `Masthead` codesandbox app - https://webcomponents-codesandbox.s3-web.us-east.cloud-object-storage.appdomain.cloud/deploy-previews/9359/masthead/index.html - Click on the "Contact" CTA and ensure that the "Let's talk" widget opens. <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
Related Ticket(s)
#9360
Description
has-contact
attribute is set totrue
.Changelog
Changed
Masthead
component CodeSandbox to include a testDDO
andcm-app.min.js
script so that we can verify that the behavior is working as expected.Screen.Recording.2022-09-12.at.11.35.02.AM.mov
Testing Instructions
Masthead
codesandbox app - https://webcomponents-codesandbox.s3-web.us-east.cloud-object-storage.appdomain.cloud/deploy-previews/9359/masthead/index.html