-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from openeuropa/OEL-543
OEL-543: Styling components.
- Loading branch information
Showing
4 changed files
with
58 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
modules/oe_whitelabel_helper/src/Plugin/better_exposed_filters/sort/FloatEndSortWidget.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
declare(strict_types = 1); | ||
|
||
namespace Drupal\oe_whitelabel_helper\Plugin\better_exposed_filters\sort; | ||
|
||
use Drupal\better_exposed_filters\Plugin\better_exposed_filters\sort\DefaultWidget; | ||
use Drupal\Core\Form\FormStateInterface; | ||
|
||
/** | ||
* OpenEuropa custom better exposed filters widget implementation. | ||
* | ||
* @BetterExposedFiltersSortWidget( | ||
* id = "oe_whitelabel_float_end_sort", | ||
* label = @Translation("Float End Sort"), | ||
* ) | ||
*/ | ||
class FloatEndSortWidget extends DefaultWidget { | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function exposedFormAlter(array &$form, FormStateInterface $form_state) { | ||
parent::exposedFormAlter($form, $form_state); | ||
$form['#attributes']['class'][] = 'float-lg-end'; | ||
$form['#attributes']['class'][] = 'd-md-block'; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
templates/overrides/search/form--views-exposed-form.html.twig
This file was deleted.
Oops, something went wrong.