Skip to content

Commit dd43a86

Browse files
Merge pull request #20736 from Yoast/1090-trivial-black-friday-ad-looks-weird-on-first-time-configuration
1090 trivial black friday ad looks weird on first time configuration
2 parents ee19f8d + 6f1bbd9 commit dd43a86

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

admin/class-premium-upsell-admin-block.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,16 @@ public function render() {
8080
$button_text
8181
);
8282

83+
echo '<div class="' . esc_attr( $class ) . '">';
84+
8385
if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ) {
8486
$bf_label = \esc_html__( 'BLACK FRIDAY', 'wordpress-seo' );
8587
$sale_label = \esc_html__( '30% OFF', 'wordpress-seo' );
8688
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Already escaped above.
8789
echo "<div class='black-friday-container'><span>$bf_label</span> <span style='margin-left: auto;'>$sale_label</span> </div>";
8890
}
8991

90-
echo '<div class="' . esc_attr( $class ) . '">';
91-
echo '<div>';
92+
echo '<div class="' . esc_attr( $class . '--container' ) . '">';
9293
echo '<h2 class="' . esc_attr( $class . '--header' ) . '">' .
9394
sprintf(
9495
/* translators: %s expands to Yoast SEO Premium */

css/src/yst_plugin_tools.css

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)