Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

[SectionedNavigation] filter the description if it's available - #111

Merged
katydecorah merged 2 commits into
masterfrom
sectionnav-filter-desc
Feb 13, 2019
Merged

katydecorah merged 2 commits into
masterfrom
sectionnav-filter-desc

Conversation

@katydecorah

Copy link
Copy Markdown
Contributor

Refs mapbox/mapbox-gl-js#7888

In the SectionedNavigation when includeFilterBar is true, if the dataset sent to the component includes a description, then we'll also filter on the description in addition to the title.

How to test: I updated the With a title, linked section headings, counts, and filter test case on http://192.168.7.223:9966/SectionedNavigation with a few descriptions. You can try searching for pizza or pretzels (naturally).

@colleenmcginnis colleenmcginnis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍕 🍨 Works perfectly!

@katydecorah
katydecorah merged commit cb322c3 into master Feb 13, 2019
@katydecorah
katydecorah deleted the sectionnav-filter-desc branch February 13, 2019 20:08
katydecorah pushed a commit that referenced this pull request Apr 17, 2019
* master: (22 commits)
  fixes bug in firefox where arrow was not vertically centered (#122)
  add swiftype attribute to ignore content blocks (#119)
  0.9.0
  Prepare 0.9.0
  Add BetaFlag component and options to add it to other components (#123)
  Prepare 0.8.1
  [patch] Use babel.config.js and updates build-package.js to output directories (#118)
  Prepare 0.8.0
  create versionSort function (#117)
  Prepare 0.7.0
  Add optional prop for tags for first level items in NavigationAccordion (#115)
  Prepare 0.6.0
  [docs-prose.css] make `.prose pre` rules more specific (#113)
  Add `mb24` to `OverviewHeader` (#112)
  [SectionedNavigation] filter the description if it's available (#111)
  Prepare 0.5.0
  Add warning and error themes to `Note` (#102)
  Add CSS to set max-height and style scrollbars for prose code examples (#103)
  [Card/CardContainer] Add new styles for fullwidth cards (#104)
  Add prism.css to create shared syntax styles used commonly across sites (#108)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants