diff --git a/.changeset/big-plums-applaud.md b/.changeset/big-plums-applaud.md new file mode 100644 index 000000000..7f2509cda --- /dev/null +++ b/.changeset/big-plums-applaud.md @@ -0,0 +1,5 @@ +--- +"@ebay/skin": minor +--- + +feat(filter-menu): added search header diff --git a/dist/filter-menu/filter-menu.css b/dist/filter-menu/filter-menu.css index 357c5b5f5..d9534c7b9 100644 --- a/dist/filter-menu/filter-menu.css +++ b/dist/filter-menu/filter-menu.css @@ -114,6 +114,38 @@ span.filter-menu__item[role^="menuitem"] { margin-bottom: 8px; } +.filter-menu__header { + align-items: center; + background-color: var(--color-background-secondary); + display: flex; + gap: var(--spacing-100); + padding: 14px var(--spacing-200); +} + +.filter-menu__header svg { + color: var(--color-foreground-secondary); +} + +.filter-menu__header input { + background-color: inherit; + border: none; + color: var(--color-foreground-primary); + flex-grow: 1; + font-size: var(--font-size-default); +} + +.filter-menu__header button { + border: none; + min-height: var(--spacing-250); + min-width: var(--spacing-250); + padding: 0; + width: var(--spacing-250); +} + +.filter-menu__header button:focus-visible { + outline-style: solid; +} + button.filter-menu-form__footer[type="submit"], button.filter-menu__footer { background-color: var( @@ -176,7 +208,7 @@ button.filter-menu__footer:hover { .filter-menu-form__text, .filter-menu__text { flex-grow: 1; - margin-left: 8px; + margin-inline-start: 8px; } .filter-menu__item[role="menuitemcheckbox"] svg.icon--checked, diff --git a/src/modules/filter-menu.marko b/src/modules/filter-menu.marko index ef400e0a6..451c17c38 100644 --- a/src/modules/filter-menu.marko +++ b/src/modules/filter-menu.marko @@ -703,6 +703,370 @@ + +
+ For multiple selection variation, you can also add an "Apply" button as a footer(to "apply" the selection(s)). +
+ ++ For multiple selection variation, you can also add a header to search the options. +
+ +