diff --git a/.github/workflows/latest-release.yml b/.github/workflows/latest-release.yml index 2e5fd60448b..8aa54f445ad 100644 --- a/.github/workflows/latest-release.yml +++ b/.github/workflows/latest-release.yml @@ -24,6 +24,11 @@ jobs: uses: actions/checkout@v3 with: ref: main + - name: Get Lables + run: | + echo "LABELS: ${{ github.event.pull_request.labels }}" + x=${{ toJson(github.event.pull_request.labels.*.name) }} + echo "Labels 2 is $x" - name: Get Configuration id: configuration uses: rgarcia-phi/json-to-variables@9835d537368468c4e4de5254dc3efeadda183793 diff --git a/includes/widgets/rating.php b/includes/widgets/rating.php index 14c978e7241..bac9607bf00 100644 --- a/includes/widgets/rating.php +++ b/includes/widgets/rating.php @@ -113,6 +113,53 @@ private function add_style_tab() { ] ); + $this->add_responsive_control( + 'icon_gap', + [ + 'label' => esc_html__( 'Spacing', 'elementor' ), + 'type' => Controls_Manager::SLIDER, + 'range' => [ + 'em' => [ + 'min' => 0, + 'max' => 10, + 'step' => 0.1, + ], + 'rem' => [ + 'min' => 0, + 'max' => 10, + 'step' => 0.1, + ], + ], + 'size_units' => [ 'px', 'em', 'rem', 'vw', 'custom' ], + 'selectors' => [ + '{{WRAPPER}}' => '--e-rating-gap: {{SIZE}}{{UNIT}}', + ], + ] + ); + + $this->add_control( + 'icon_color', + [ + 'label' => esc_html__( 'Color', 'elementor' ), + 'type' => Controls_Manager::COLOR, + 'selectors' => [ + '{{WRAPPER}}' => '--e-rating-star-marked-color: {{VALUE}}', + ], + 'separator' => 'before', + ] + ); + + $this->add_control( + 'icon_unmasked_color', + [ + 'label' => esc_html__( 'Unmarked Color', 'elementor' ), + 'type' => Controls_Manager::COLOR, + 'selectors' => [ + '{{WRAPPER}}' => '--e-rating-star-color: {{VALUE}}', + ], + ] + ); + $this->end_controls_section(); } @@ -236,6 +283,7 @@ protected function get_icon_marked_width( $icon_index ): string { if ( $rating_value >= $icon_index ) { $width = '100%'; + } elseif ( intval( ceil( $rating_value ) ) === $icon_index ) { $width = ( $rating_value - ( $icon_index - 1 ) ) * 100 . '%'; }