Skip to content

Commit a1545c5

Browse files
authored
Icons: rename timeToRead to time (#78804)
1 parent 782bd3e commit a1545c5

6 files changed

Lines changed: 11 additions & 7 deletions

File tree

packages/block-library/src/post-time-to-read/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* WordPress dependencies
33
*/
4-
import { timeToRead as icon } from '@wordpress/icons';
4+
import { time as icon } from '@wordpress/icons';
55

66
/**
77
* Internal dependencies

packages/block-library/src/post-time-to-read/variations.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* WordPress dependencies
33
*/
44
import { __ } from '@wordpress/i18n';
5-
import { timeToRead, wordCount } from '@wordpress/icons';
5+
import { time, wordCount } from '@wordpress/icons';
66

77
const variations = [
88
{
@@ -15,7 +15,7 @@ const variations = [
1515
scope: [ 'inserter', 'transform' ],
1616
isActive: ( blockAttributes ) =>
1717
blockAttributes?.displayMode === 'time',
18-
icon: timeToRead,
18+
icon: time,
1919
isDefault: true,
2020
},
2121
{

packages/icons/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Breaking Changes
6+
7+
- Rename `timeToRead` icon to `time`. ([#78804](https://github.com/WordPress/gutenberg/pull/78804))
8+
59
## 13.2.0 (2026-05-27)
610

711
## 13.1.0 (2026-05-14)
File renamed without changes.

packages/icons/src/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,9 +1645,9 @@
16451645
"filePath": "library/thumbs-up.svg"
16461646
},
16471647
{
1648-
"slug": "time-to-read",
1649-
"label": "Time To Read",
1650-
"filePath": "library/time-to-read.svg"
1648+
"slug": "time",
1649+
"label": "Time",
1650+
"filePath": "library/time.svg"
16511651
},
16521652
{
16531653
"slug": "tip",

storybook/stories/icons/library.story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const keywords: Partial< Record< string, string[] > > = {
4343
pencil: [ 'edit' ],
4444
thumbsDown: [ 'dislike' ],
4545
thumbsUp: [ 'like' ],
46-
timeToRead: [ 'clock' ],
46+
time: [ 'clock', 'duration', 'hour', 'minute', 'second' ],
4747
trash: [ 'delete' ],
4848
unseen: [ 'hide' ],
4949
};

0 commit comments

Comments
 (0)