Skip to content

Commit

Permalink
Merge pull request #1577 from minkyngkm/wd-19255
Browse files Browse the repository at this point in the history
Build page on /solutions/cloud-native-development
  • Loading branch information
minkyngkm authored Mar 4, 2025
2 parents d5007a3 + e124827 commit 8ab1006
Show file tree
Hide file tree
Showing 5 changed files with 546 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "1.79.0",
"vanilla-framework": "4.20.2"
"vanilla-framework": "4.21.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
Expand Down
23 changes: 23 additions & 0 deletions static/js/modals.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,26 @@ function getCustomFields(event) {
const textarea = document.getElementById("Comments_from_lead__c");
textarea.value = message;
}

// Fix Tab and modal js conflicts
(function () {
document.querySelectorAll(".p-tabs__link").forEach((tab) => {
tab.addEventListener("click", function (event) {
event.preventDefault();

document.querySelectorAll(".p-tabs__link").forEach((t) => {
t.setAttribute("aria-selected", "false");
t.setAttribute("tabindex", "-1");
});
this.setAttribute("aria-selected", "true");
this.removeAttribute("tabindex");

document
.querySelectorAll("[role='tabpanel']")
.forEach((panel) => (panel.style.display = "none"));
document.getElementById(
this.getAttribute("aria-controls")
).style.display = "block";
});
});
})();
39 changes: 39 additions & 0 deletions templates/solutions/cloud-native-development/form-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"form": {
"/solutions/cloud-native-development": {
"templatePath": "/solutions/cloud-native-development/index.html",
"isModal": true,
"modalId": "cloud-native-development-modal",
"formData": {
"title": "Get in touch",
"formId": "6134",
"returnUrl": "/solutions/cloud-native-development#contact-form-success",
"product": ""
},
"fieldsets": [
{
"title": "Contact Canonical to discuss your app modernization needs and find out how our open source technologies can help you.",
"id": "about-you",
"noCommentsFromLead": true,
"fields": [
{
"type": "tel",
"id": "phone",
"label": "Phone number"
},
{
"type": "text",
"id": "company",
"label": "Company"
},
{
"type": "text",
"id": "title",
"label": "Job title"
}
]
}
]
}
}
}
Loading

0 comments on commit 8ab1006

Please sign in to comment.