Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add comment
  • Loading branch information
t-hamano committed Oct 21, 2022
commit fd7475eab8ad4523423654156f5b4d87e9ec9fb0
2 changes: 2 additions & 0 deletions packages/block-library/src/table/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const oldColors = {
'subtle-pale-pink': '#fcf0ef',
};

// In #41140 support was added to global styles for caption elements which
// added a `wp-element-caption` classname to the embed figcaption element.
const v3 = {
Copy link
Contributor

@glendaviesnz glendaviesnz Oct 21, 2022

Choose a reason for hiding this comment

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

Thanks for restructuring this into a named version format - it makes it much easier to work with the deprecations this way. It would be good to add a comment above the v3 to outline the reason for the deprecation:

// In #41140 support was added to global styles for caption elements which added a `wp-element-caption` classname to the embed figcaption element.

this hasn't been common practice in the past, but it helps when looking at deprecations at a glance to work out what they cover.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your review, done!

attributes: {
hasFixedLayout: {
Expand Down