Skip to content

Commit

Permalink
TMZ-306 final tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mserino committed Jan 23, 2025
1 parent af4e250 commit 9525c13
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions modules/content/assets/scss/hello-plus-flex-hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@
--flex-hero-image-border-width: 1px;
--flex-hero-image-border-color: #{$global-colors-secondary};

--flex-hero-button-border-radius-custom-block-end: #{$corners-shape-default};
--flex-hero-button-border-radius-custom-block-start: #{$corners-shape-default};
--flex-hero-button-border-radius-custom-inline-end: #{$corners-shape-default};
--flex-hero-button-border-radius-custom-inline-start: #{$corners-shape-default};
--flex-hero-border-radius-default: #{$corners-shape-default};
--flex-hero-border-radius-sharp: #{$corners-shape-sharp};
--flex-hero-border-radius-rounded: #{$corners-shape-rounded};
--flex-hero-border-radius-round: #{$corners-shape-round};
--flex-hero-border-radius-oval: #{$corners-shape-oval};

--flex-hero-image-border-radius-custom-block-end: #{$corners-shape-sharp};
--flex-hero-image-border-radius-custom-block-start: #{$corners-shape-sharp};
--flex-hero-image-border-radius-custom-inline-end: #{$corners-shape-sharp};
Expand Down
4 changes: 2 additions & 2 deletions modules/content/widgets/flex-hero.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function get_icon(): string {
}

public function get_style_depends(): array {
return [ 'helloplus-flex-hero' ];
return [ 'helloplus-flex-hero', 'helloplus-button' ];
}

protected function render(): void {
Expand Down Expand Up @@ -767,7 +767,7 @@ protected function add_style_image_section() {
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em', 'rem' ],
'selectors' => [
'{{WRAPPER}} .ehp-flex-hero' => '--flex-hero-image-border-radius-block-end: {{BOTTOM}}{{UNIT}}; --flex-hero-image-border-radius-block-start: {{TOP}}{{UNIT}}; --flex-hero-image-border-radius-inline-end: {{RIGHT}}{{UNIT}}; --flex-hero-image-border-radius-inline-start: {{LEFT}}{{UNIT}};',
'{{WRAPPER}} .ehp-flex-hero' => '--flex-hero-image-border-radius-custom-block-end: {{BOTTOM}}{{UNIT}}; --flex-hero-image-border-radius-custom-block-start: {{TOP}}{{UNIT}}; --flex-hero-image-border-radius-custom-inline-end: {{RIGHT}}{{UNIT}}; --flex-hero-image-border-radius-custom-inline-start: {{LEFT}}{{UNIT}};',
],
'separator' => 'before',
'condition' => [
Expand Down
2 changes: 1 addition & 1 deletion modules/content/widgets/hero.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function get_icon(): string {
}

public function get_style_depends(): array {
return [ 'helloplus-hero' ];
return [ 'helloplus-hero', 'helloplus-button' ];
}

protected function render(): void {
Expand Down

0 comments on commit 9525c13

Please sign in to comment.