Back to Dropdown Filter-guidelines

CSS ComponentThe latest version of this package is: 14.1.0, Opens in new window

The Dropdown Filter component is used for filtering of data.

This component provides .css, .styl, .less and .scss -files.

To be able to install this component, please refer to the Project Setup documentation.

$ npm i @ids-core/dropdown-filter@14.1.0

Table of Contents

Edit this section, Opens in new window

Usage

Required markup

<div class="if dropdown-filter-holder">
  <button
    type="button"
    aria-controls="<identifier>"
    aria-haspopup="true"
    role="combobox"
    aria-owns="<identifier>"
    aria-expanded="false"
    class="if dropdown-filter-button"
  >
    Office
  </button>
  <div class="if dropdown-filter" id="<identifier>" role="listbox">
    <ul class="if" aria-activedescendant="<item-identifier>">
      <li class="if">
        <input
          id="<item-identifier>"
          type="checkbox"
          role="option"
          aria-selected="true"
          data-rel="London"
          class="if checkbox"
        />
        <label class="if" for="<item-identifier>">London</label>
      </li>
      โ€ฆ
    </ul>
  </div>
</div>

Filter groups

If you have more filters, you can wrap them:

<ul class="if dropdown-filter-groups">
  <li class="if">
    <div class="if dropdown-filter-holder">
      โ€ฆ
    </div>
  </li>
  โ€ฆ
</ul>
Edit this section, Opens in new window

Accessibility

There is currently no documentation for this section yet. However, there might be some more documentation after this section.
Contact the Design System team, Opens in new window for questions.

If you want to contribute, you can also add the documentation yourself!, Opens in new window

Edit this section, Opens in new window

Changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

14.0.2 (2021-11-12)

Bug Fixes

  • ๐Ÿ› Added .dropdown-filter-button to buttons, +hot reload (ef515a5)

14.0.0 (2021-11-09)

chore

  • ๐Ÿค– Rename util to utils (f78721f)

Code Refactoring

  • ๐Ÿ’ก Rename scope and repository (3ea5423)
  • ๐Ÿ’ก Use new navigation structure for documentation (415aee5), closes #490579

Documentation

  • โœ๏ธ Update links and change navigation structure (0bfd27d), closes #490579

BREAKING CHANGES

  • ๐Ÿงจ The scope for If Design System npm packages has now changed from

@if-design-system to @ids-core. We have also renamed the repository from if-design-system to ids-core

  • ๐Ÿงจ Util is now renamed to Utils
  • ๐Ÿงจ We have now changed the navigation structure for the documentation site.

Please update any saved links!

  • ๐Ÿงจ Navigation structure has now changed. Please see release notes!

13.11.0 (2021-10-19)

Features

  • ๐ŸŽธ Input field hot reload (eac76b7)

13.9.2 (2021-09-30)

Bug Fixes

  • ๐Ÿ› Complete the pseudo-element fix (1dcee2c)

13.7.0 (2021-09-22)

Features

13.6.3 (2021-09-17)

Bug Fixes

12.13.1 (2021-08-11)

Bug Fixes

  • ๐Ÿ› Whitelist docs dir for npm packaging (1a5cfd0), closes #457621

12.13.0 (2021-08-11)

Bug Fixes

12.12.1 (2021-08-10)

Bug Fixes

  • ๐Ÿ› Make sure components using fonts, have fonts bundled (d5bb642), closes #354912

12.6.0 (2021-05-27)

Bug Fixes

  • ๐Ÿ› Manually set firstPublished and lastModified (e83af7d)
  • ๐Ÿ› We don't need lastModified (e458a12)

12.0.0 (2021-05-05)

Code Refactoring

  • ๐Ÿ’ก Refactor out dropdown filter from data-tables (e48349d), closes #336508
  • ๐Ÿ’ก Rename and consolidate mixins (67cf470), closes #268081

BREAKING CHANGES

  • ๐Ÿงจ All of the mixins have now been renamed
  • ๐Ÿงจ Dropdown Filter is now a separate component
Edit this section, Opens in new window
Contact us, Opens in new window