Skip to content

Commit

Permalink
DataViews: do not display element descriptions in filters (WordPress#…
Browse files Browse the repository at this point in the history
…64674)

Co-authored-by: oandregal <oandregal@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
  • Loading branch information
5 people authored and bph committed Aug 31, 2024
1 parent f69a665 commit 4fceae0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 2 additions & 0 deletions packages/dataviews/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
## Internal

- The "move left/move right" controls in the table layout (popup displayed on cliking header) are always visible. ([#64646](https://github.com/WordPress/gutenberg/pull/64646)). Before this, its visibility depending on filters, enableSorting, and enableHiding.
- Filters no longer display the elements' description. ([#64674](https://github.com/WordPress/gutenberg/pull/64674))


## 4.1.0 (2024-08-07)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,7 @@ function ListBox( { view, filter, onChangeView }: SearchWidgetProps ) {
<Icon icon={ check } />
) }
</span>
<span>
{ element.label }
{ !! element.description && (
<span className="dataviews-filters__search-widget-listitem-description">
{ element.description }
</span>
) }
</span>
<span>{ element.label }</span>
</Ariakit.CompositeHover>
) ) }
</Composite>
Expand Down

0 comments on commit 4fceae0

Please sign in to comment.