1. Fabrik 3.8.1 has been released. It is mostly bug fixes and feature enhancements, but does include two new plugins (push notifications, and the sequence element). As usual we strongly recommend testing the new release on a sandbox if your application is mission critical, and always do an Akeeba backup before updating.
    Dismiss Notice

[SOLVED] css class for database join and dropdown different

Discussion in 'Professional Support' started by bea, Jun 28, 2018.

Thread Status:
Not open for further replies.
  1. bea

    bea Active Member

    Level: Professional
    Hi,
    I noticed, that my dropdown design for database join (Schicht) and simple dropdown (Status) are different in my YOOtheme pro template. How can I customize to get the same style for both dropdowns like 'Status'.
    Maybe Fabrik dbjoin class is distinguished from dropdown class?
    Many thanks.
    Bianka
     
  2. bea

    bea Active Member

    Level: Professional
    Friendly bump
     
  3. troester

    troester Administrator Staff Member

    Level: Community
    I can't see a difference on my site.
    Do you have a link?
    Are both elements single select?
     
  4. bea

    bea Active Member

    Level: Professional
    Hi troester,
    both elements are single dropdowns (simple dropdown and dbjoin dropdown). Difference is just in height and design.
    You will find site infos in 'My Sites'
    Many thanks
    Bianka
     
  5. troester

    troester Administrator Staff Member

    Level: Community
    Which form?
     
  6. bea

    bea Active Member

    Level: Professional
    CP1 Aktionsplan and CP1 Line Tour Formular
     
  7. troester

    troester Administrator Staff Member

    Level: Community
    It's because your template is doing strange css settings (overriding the dropdown with an extra background etc).
    View attachment 17343

    I think you can override ...plugins\fabrik_element\dropdown\layouts\fabrik-element-dropdown-form.php
    and change
    $multisize = $d->multisize === '' ? '' : 'size="' . $d->multisize . '"';
    to
    $multisize = $d->multisize === '' ? 'size="1" ' : 'size="' . $d->multisize . '"';

    to force a size="1" option as in the dbjoin (so it won't trigger this CSS setting).
     
    bea likes this.
  8. bea

    bea Active Member

    Level: Professional
    Hi troester,
    many thanks for your support. It works!
    Cheers, Bianka
     
Thread Status:
Not open for further replies.

Share This Page