From 5a1dcab43193934d59bbecca54b859f7700aff51 Mon Sep 17 00:00:00 2001 From: Elan Bartholomew <79870969+elan-tbx@users.noreply.github.com> Date: Mon, 19 Aug 2024 10:11:47 -0600 Subject: [PATCH] MWPW-156872 - Add `no borders` variant to Accordion block (#2755) add no borders option --- libs/blocks/accordion/accordion.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/blocks/accordion/accordion.css b/libs/blocks/accordion/accordion.css index 0cdc4e2c2d..c979c3557a 100644 --- a/libs/blocks/accordion/accordion.css +++ b/libs/blocks/accordion/accordion.css @@ -12,6 +12,10 @@ dl.accordion { border-bottom: 1px solid var(--color-gray-500); } +.accordion-container.no-borders dl.accordion { + border: none; +} + .accordion dd { margin: 0; padding: var(--spacing-xs); @@ -42,6 +46,10 @@ dl.accordion { color: var(--color-black); } +.accordion-container.no-borders .accordion dt button { + border: none; +} + .accordion dt .accordion-heading { margin: 0; }