Skip to content

Commit 146f076

Browse files
committed
fix: add pm-integration-features-group classes for theme compatibility
Category integrations block now uses pm-integration-features-group class so site theme styles (like .integration-content .pm-integration-features-group) apply correctly for borders, backgrounds, and other styling. Changes: - Added pm-integration-features-group and has-features classes to wrapper - Added pm-integration-features-group__header class to header - Added pm-integration-features-group__features class to features container
1 parent eb90134 commit 146f076

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.4.4] - 2025-01-18
9+
10+
### Fixed
11+
- Category integrations now inherits site theme styles by using `.pm-integration-features-group` class
12+
- Added `pm-integration-features-group` and `has-features` classes to wrapper
13+
- Added `pm-integration-features-group__header` class to header
14+
- Added `pm-integration-features-group__features` class to features container
15+
- Site styles like `.integration-content .pm-integration-features-group` now apply correctly
16+
817
## [0.4.3] - 2025-01-18
918

1019
### Changed

integration-features.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Integration Features
44
* Plugin URI: https://github.com/code-atlantic/integration-features
55
* Description: Gutenberg blocks for displaying integration features with tier badges, accordion descriptions, and group organization.
6-
* Version: 0.4.3
6+
* Version: 0.4.4
77
* Requires at least: 6.7
88
* Requires PHP: 7.4
99
* Author: Code Atlantic

src/category-integrations/render.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@
9595
$total_count = $integrations->post_count;
9696

9797
// Determine wrapper classes.
98-
$wrapper_classes = array( 'pm-category-integrations' );
98+
// Include pm-integration-features-group for theme compatibility (site styles target this class).
99+
$wrapper_classes = array( 'pm-category-integrations', 'pm-integration-features-group', 'has-features' );
99100
if ( 'collapsed' === $display_mode ) {
100101
$wrapper_classes[] = 'is-collapsed';
101102
}
@@ -157,7 +158,7 @@
157158

158159
<!-- Header: Icon + Heading + Subheading -->
159160
<div
160-
class="pm-category-integrations__header"
161+
class="pm-category-integrations__header pm-integration-features-group__header"
161162
style="<?php echo esc_attr( $header_styles ); ?>"
162163
<?php if ( 'collapsed' === $display_mode ) : ?>
163164
role="button"
@@ -223,7 +224,7 @@ class="pm-category-integrations__toggle dashicons dashicons-arrow-up-alt2 is-col
223224

224225
<!-- Integration Features List (matches integration-features-group structure) -->
225226
<div
226-
class="pm-category-integrations__features <?php echo 'collapsed' === $display_mode ? 'is-hidden' : ''; ?>"
227+
class="pm-category-integrations__features pm-integration-features-group__features <?php echo 'collapsed' === $display_mode ? 'is-hidden' : ''; ?>"
227228
style="<?php echo esc_attr( $padding_styles ); ?>"
228229
>
229230
<?php

0 commit comments

Comments
 (0)