Skip to content

Commit

Permalink
Updated to fix cta button breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-nichols committed Nov 30, 2023
1 parent eac5e4d commit f35a576
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/call-to-action/call-to-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { decorateModals } from '../../scripts/scripts.js';
export default function decorate(block) {
block.classList.add(...'ctasection mx-auto max-w-7xl pt-6 lg:py-8'.split(' '));
block.querySelector(':scope div > div').classList.add(...'md:flex space-y-8 md:space-y-0 md:flex-row w-full py-8 md:py-16 md:px-12 px-6 items-center md:justify-between bg-danaherpurple-800'.split(' '));
block.querySelector('h2')?.classList.add(...'text-2xl p-0 m-0 tracking-tight sm:text-3xl text-white font-normal tracking-wide'.split(' '));
block.querySelector('h2')?.classList.add(...'text-2xl p-0 m-0 tracking-tight sm:text-3xl text-white font-normal tracking-wide max-w-sm lg:max-w-2xl'.split(' '));
block.querySelectorAll('p > a').forEach((a) => {
a.classList.add(...'btn-outline-trending-brand text-lg rounded-full px-6 py-3 !no-underline'.split(' '));
if (a.href.includes('#request-quote')) {
Expand Down
4 changes: 4 additions & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4309,6 +4309,10 @@ main .default-content-wrapper ul {
width: 20rem;
}

.lg\:max-w-2xl {
max-width: 42rem;
}

.lg\:max-w-4xl {
max-width: 56rem;
}
Expand Down

0 comments on commit f35a576

Please sign in to comment.