We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
full_height
align_content
1 parent 5dc5cd7 commit 5fe0ceeCopy full SHA for 5fe0cee
src/Block.php
@@ -471,10 +471,20 @@ public function getClasses(): string
471
{
472
$supports = $this->getHtmlAttributes();
473
474
+ $class = $supports['class'] ?? '';
475
+
476
+ if ($alignContent = $this->block->alignContent ?? $this->block->align_content ?? null) {
477
+ $class = "{$class} is-position-{$alignContent}";
478
+ }
479
480
+ if ($this->block->fullHeight ?? $this->block->full_height ?? null) {
481
+ $class = "{$class} full-height";
482
483
484
return str_replace(
485
acf_slugify($this->namespace),
486
$this->slug,
- $supports['class'] ?? ''
487
+ trim($class)
488
);
489
}
490
0 commit comments