From ce7af0e06da9e82edb3bc013e3a8fafda0ff8b1f Mon Sep 17 00:00:00 2001 From: Django Date: Thu, 9 Feb 2023 08:09:07 -0700 Subject: [PATCH] Configurable heading level Add a heading_level parameter to increase utility, defaults to previous level 2 --- src/modules/card.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/card.php b/src/modules/card.php index afd47cc..e548312 100644 --- a/src/modules/card.php +++ b/src/modules/card.php @@ -18,6 +18,7 @@ 'class' => [ 'wds-module', 'wds-module-card' ], 'eyebrow' => false, 'heading' => false, + 'heading_level' => 2, 'content' => false, 'button' => false, 'attachment_id' => false, @@ -61,7 +62,7 @@ 'heading', [ 'text' => $abs_args['heading'], - 'level' => 2, + 'level' => $abs_args['heading_level'], ] ); endif;