diff --git a/packages/dataviews/CHANGELOG.md b/packages/dataviews/CHANGELOG.md index 7569cfb93ac0b6..ebc35e336d6876 100644 --- a/packages/dataviews/CHANGELOG.md +++ b/packages/dataviews/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- Invert the logic for which icon to show in `DataViews` when using the filter view. Icons now match the action of the button label. ([#65914](https://github.com/WordPress/gutenberg/pull/65914)). + ## 4.5.0 (2024-10-03) ## 4.4.0 (2024-09-19) diff --git a/packages/dataviews/src/components/dataviews-view-config/index.tsx b/packages/dataviews/src/components/dataviews-view-config/index.tsx index 02e81b2b0913d8..ec4a5f9a7f1d0a 100644 --- a/packages/dataviews/src/components/dataviews-view-config/index.tsx +++ b/packages/dataviews/src/components/dataviews-view-config/index.tsx @@ -358,7 +358,7 @@ function FieldItem( { } }, 50 ); } } - icon={ isVisible ? seen : unseen } + icon={ isVisible ? unseen : seen } label={ isVisible ? sprintf( diff --git a/packages/icons/CHANGELOG.md b/packages/icons/CHANGELOG.md index b1b19fdfbc0f2f..c0ee7aab2cf986 100644 --- a/packages/icons/CHANGELOG.md +++ b/packages/icons/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Enhancements + +- Update `unseen` icon to be a strike-through eye, rather than a closed eye, to match provide consistency. ([#65914](https://github.com/WordPress/gutenberg/pull/65914)). + ## 10.9.0 (2024-10-03) ## 10.8.0 (2024-09-19) diff --git a/packages/icons/src/library/unseen.js b/packages/icons/src/library/unseen.js index 384c67d08ff55f..bb73a2199e1ee4 100644 --- a/packages/icons/src/library/unseen.js +++ b/packages/icons/src/library/unseen.js @@ -5,7 +5,7 @@ import { SVG, Path } from '@wordpress/primitives'; const unseen = ( - + );