@@ -35,24 +35,11 @@ import {
3535 Placeholder ,
3636 TextControl ,
3737 ToggleControl ,
38- ToolbarGroup ,
3938} from '@wordpress/components' ;
4039import { compose } from '@wordpress/compose' ;
4140import { withSelect } from '@wordpress/data' ;
4241import { useState } from '@wordpress/element' ;
4342import { __ } from '@wordpress/i18n' ;
44- import {
45- alignLeft ,
46- alignRight ,
47- alignCenter ,
48- tableColumnAfter ,
49- tableColumnBefore ,
50- tableColumnDelete ,
51- tableRowAfter ,
52- tableRowBefore ,
53- tableRowDelete ,
54- table ,
55- } from '@wordpress/icons' ;
5643
5744/**
5845 * Internal dependencies
@@ -69,20 +56,21 @@ import {
6956 toggleSection ,
7057 isEmptyTableSection ,
7158} from './state' ;
59+ import { ToolbarGroup } from '../../components/polyfills' ;
7260
7361const ALIGNMENT_CONTROLS = [
7462 {
75- icon : alignLeft ,
63+ icon : 'editor-alignleft' ,
7664 title : __ ( 'Align Column Left' , 'material-design' ) ,
7765 align : 'left' ,
7866 } ,
7967 {
80- icon : alignCenter ,
68+ icon : 'editor-aligncenter' ,
8169 title : __ ( 'Align Column Center' , 'material-design' ) ,
8270 align : 'center' ,
8371 } ,
8472 {
85- icon : alignRight ,
73+ icon : 'editor-alignright' ,
8674 title : __ ( 'Align Column Right' , 'material-design' ) ,
8775 align : 'right' ,
8876 } ,
@@ -379,37 +367,37 @@ const DataTableEdit = ( { attributes, setAttributes, hasCaption } ) => {
379367 const getTableControls = ( ) => {
380368 return [
381369 {
382- icon : tableRowBefore ,
370+ icon : 'table-row-before' ,
383371 title : __ ( 'Add Row Before' , 'material-design' ) ,
384372 isDisabled : ! selectedCell ,
385373 onClick : onInsertRowBefore ,
386374 } ,
387375 {
388- icon : tableRowAfter ,
376+ icon : 'table-row-after' ,
389377 title : __ ( 'Add Row After' , 'material-design' ) ,
390378 isDisabled : ! selectedCell ,
391379 onClick : onInsertRowAfter ,
392380 } ,
393381 {
394- icon : tableRowDelete ,
382+ icon : 'table-row-delete' ,
395383 title : __ ( 'Delete Row' , 'material-design' ) ,
396384 isDisabled : ! selectedCell ,
397385 onClick : onDeleteRow ,
398386 } ,
399387 {
400- icon : tableColumnBefore ,
388+ icon : 'table-col-before' ,
401389 title : __ ( 'Add Column Before' , 'material-design' ) ,
402390 isDisabled : ! selectedCell ,
403391 onClick : onInsertColumnBefore ,
404392 } ,
405393 {
406- icon : tableColumnAfter ,
394+ icon : 'table-col-after' ,
407395 title : __ ( 'Add Column After' , 'material-design' ) ,
408396 isDisabled : ! selectedCell ,
409397 onClick : onInsertColumnAfter ,
410398 } ,
411399 {
412- icon : tableColumnDelete ,
400+ icon : 'table-col-delete' ,
413401 title : __ ( 'Delete Column' , 'material-design' ) ,
414402 isDisabled : ! selectedCell ,
415403 onClick : onDeleteColumn ,
@@ -465,7 +453,7 @@ const DataTableEdit = ( { attributes, setAttributes, hasCaption } ) => {
465453 < ToolbarGroup >
466454 < DropdownMenu
467455 hasArrowIndicator
468- icon = { table }
456+ icon = "editor- table"
469457 label = { __ ( 'Edit table' , 'material-design' ) }
470458 controls = { getTableControls ( ) }
471459 />
0 commit comments