Drupal is a registered trademark of Dries Buytaert
cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! linkit 7.0.15 Minor update available for module linkit (7.0.15). views_data_export 8.x-1.10 Minor update available for module views_data_export (8.x-1.10).

Style Options Conditions extends the Style Options module with a condition plugin system for paragraph types. Style options are only shown in the editor and applied to rendered output when all declared conditions pass, enabling context-aware option visibility without writing custom PHP per paragraph type.

Conditions are declared directly in your *.style_options.yml file alongside the options they guard. Multiple conditions on a single option are ANDed — all must pass. New condition types can be added by any module using the plugin system.

Included submodule: Style Options Conditions: Layout

The style_options_conditions_layout submodule provides the layout condition plugin, which evaluates visibility based on Layout Paragraphs context. layout_paragraphs is not a hard dependency — the plugin checks for the module at runtime and fails open if it is not installed.

Example use cases

  • Show a "Container Width" option only when a paragraph is placed at the top level of a page, not inside a grid
  • Show a "Column Span" option only when a paragraph is inside a specific multi-column layout
  • Show a layout-specific option only in certain regions (e.g. header and footer, but not content)

Activity

Total releases
2
First release
May 2026
Latest release
19 hours ago
Release cadence
0 days
Stability
50% stable

Releases

Version Type Release date
1.0.0 Stable May 22, 2026
1.0.x-dev Dev May 22, 2026