Skip to content

Commit c03ffc3

Browse files
committed
Removed icon_class from DateFilter
1 parent e0ff8cd commit c03ffc3

1 file changed

Lines changed: 1 addition & 27 deletions

File tree

components/DateFilter.php

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,6 @@ class DateFilter extends BaseComponent {
8282
*/
8383
protected $placement = self::PLACEMENT_BOTTOM_START;
8484

85-
/**
86-
* CSS class name used for the icon element.
87-
*
88-
* @since 4.0.0
89-
*
90-
* @var string
91-
*/
92-
protected $icon_class;
93-
9485
/**
9586
* Button size.
9687
*
@@ -181,26 +172,13 @@ public function placement( string $placement ): self {
181172
return $this;
182173
}
183174

184-
/**
185-
* Set Icon Class.
186-
*
187-
* @since 4.0.0
188-
*
189-
* @param string $icon_class CSS class name used for the icon element.
190-
*
191-
* @return self
192-
*/
193-
public function icon_class( string $icon_class ): self {
194-
$this->icon_class = $icon_class;
195-
return $this;
196-
}
197-
198175
/**
199176
* Enable or disable the display of the label text.
200177
*
201178
* @since 4.0.0
202179
*
203180
* @param bool $show_label True to show the label, false to hide it.
181+
*
204182
* @return $this
205183
*/
206184
public function show_label( bool $show_label ) {
@@ -234,10 +212,6 @@ public function get(): string {
234212
$popover_classes = 'tutor-popover';
235213
$icon = Icon::CALENDAR_2;
236214

237-
if ( ! empty( $this->icon_class ) ) {
238-
$button_classes .= " {$this->icon_class}";
239-
}
240-
241215
if ( $is_range ) {
242216
$calendar_options = array(
243217
'type' => 'multiple',

0 commit comments

Comments
 (0)