Skip to content

Commit 4dd1872

Browse files
fix (block toolbar): icon sizes now show up the correct size in alignment toolbar buttons
1 parent dca1aa5 commit 4dd1872

File tree

1 file changed

+26
-26
lines changed
  • src/components/advanced-toolbar-control

1 file changed

+26
-26
lines changed

src/components/advanced-toolbar-control/index.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -36,116 +36,116 @@ const FLEX_HORIZONTAL_ALIGN_OPTIONS = [
3636
{
3737
value: 'flex-start',
3838
title: __( 'Start', i18n ),
39-
icon: <SVGIconLeft />,
39+
icon: <SVGIconLeft width="24" height="24" />,
4040
},
4141
{
4242
value: 'center',
4343
title: __( 'Center', i18n ),
44-
icon: <SVGIconHorizontalCenter />,
44+
icon: <SVGIconHorizontalCenter width="24" height="24" />,
4545
},
4646
{
4747
value: 'flex-end',
4848
title: __( 'End', i18n ),
49-
icon: <SVGIconRight />,
49+
icon: <SVGIconRight width="24" height="24" />,
5050
},
5151
{
5252
value: 'space-between',
5353
title: __( 'Space Between', i18n ),
54-
icon: <SVGIconSpaceBetween />,
54+
icon: <SVGIconSpaceBetween width="24" height="24" />,
5555
},
5656
{
5757
value: 'space-around',
5858
title: __( 'Space Around', i18n ),
59-
icon: <SVGIconSpaceAround />,
59+
icon: <SVGIconSpaceAround width="24" height="24" />,
6060
},
6161
{
6262
value: 'space-evenly',
6363
title: __( 'Space Evenly', i18n ),
64-
icon: <SVGIconSpaceEvenly />,
64+
icon: <SVGIconSpaceEvenly width="24" height="24" />,
6565
},
6666
]
6767

6868
const FLEX_HORIZONTAL_ALIGN_OPTIONS_ALT = [
6969
{
7070
value: 'flex-start',
7171
title: __( 'Start', i18n ),
72-
icon: <SVGIconLeft />,
72+
icon: <SVGIconLeft width="24" height="24" />,
7373
},
7474
{
7575
value: 'center',
7676
title: __( 'Center', i18n ),
77-
icon: <SVGIconHorizontalCenter />,
77+
icon: <SVGIconHorizontalCenter width="24" height="24" />,
7878
},
7979
{
8080
value: 'flex-end',
8181
title: __( 'End', i18n ),
82-
icon: <SVGIconRight />,
82+
icon: <SVGIconRight width="24" height="24" />,
8383
},
8484
{
8585
value: 'space-between',
8686
title: __( 'Space Between', i18n ),
87-
icon: <SVGIconSpaceBetween />,
87+
icon: <SVGIconSpaceBetween width="24" height="24" />,
8888
},
8989
]
9090

9191
const FLEX_VERTICAL_ALIGN_OPTIONS = [
9292
{
9393
value: 'flex-start',
9494
title: __( 'Start', i18n ),
95-
icon: <SVGIconTop />,
95+
icon: <SVGIconTop width="24" height="24" />,
9696
},
9797
{
9898
value: 'center',
9999
title: __( 'Center', i18n ),
100-
icon: <SVGIconVerticalCenter />,
100+
icon: <SVGIconVerticalCenter width="24" height="24" />,
101101
},
102102
{
103103
value: 'flex-end',
104104
title: __( 'End', i18n ),
105-
icon: <SVGIconBottom />,
105+
icon: <SVGIconBottom width="24" height="24" />,
106106
},
107107
{
108108
value: 'stretch',
109109
title: __( 'Stretch', i18n ),
110-
icon: <SVGIconStretch />,
110+
icon: <SVGIconStretch width="24" height="24" />,
111111
},
112112
{
113113
value: 'baseline',
114114
title: __( 'Baseline', i18n ),
115-
icon: <SVGIconVerticalBaseline />,
115+
icon: <SVGIconVerticalBaseline width="24" height="24" />,
116116
},
117117
]
118118

119119
const FLEX_VERTICAL_JUSTIFY_OPTIONS = [
120120
{
121121
value: 'flex-start',
122122
title: __( 'Start', i18n ),
123-
icon: <SVGIconTop />,
123+
icon: <SVGIconTop width="24" height="24" />,
124124
},
125125
{
126126
value: 'center',
127127
title: __( 'Center', i18n ),
128-
icon: <SVGIconVerticalCenter />,
128+
icon: <SVGIconVerticalCenter width="24" height="24" />,
129129
},
130130
{
131131
value: 'flex-end',
132132
title: __( 'End', i18n ),
133-
icon: <SVGIconBottom />,
133+
icon: <SVGIconBottom width="24" height="24" />,
134134
},
135135
{
136136
value: 'space-between',
137137
title: __( 'Space Between', i18n ),
138-
icon: <SVGIconSpaceBetween style={ { transform: 'rotate(90deg)' } } />,
138+
icon: <SVGIconSpaceBetween style={ { transform: 'rotate(90deg)' } } width="24" height="24" />,
139139
},
140140
{
141141
value: 'space-around',
142142
title: __( 'Space Around', i18n ),
143-
icon: <SVGIconSpaceAround style={ { transform: 'rotate(90deg)' } } />,
143+
icon: <SVGIconSpaceAround style={ { transform: 'rotate(90deg)' } } width="24" height="24" />,
144144
},
145145
{
146146
value: 'space-evenly',
147147
title: __( 'Space Evenly', i18n ),
148-
icon: <SVGIconSpaceEvenly style={ { transform: 'rotate(90deg)' } } />,
148+
icon: <SVGIconSpaceEvenly style={ { transform: 'rotate(90deg)' } } width="24" height="24" />,
149149
},
150150
]
151151

@@ -158,30 +158,30 @@ const HORIZONTAL_ALIGN_OPTIONS = [
158158
{
159159
value: 'center',
160160
title: __( 'Center', i18n ),
161-
icon: <SVGIconHorizontalCenter />,
161+
icon: <SVGIconHorizontalCenter width="24" height="24" />,
162162
},
163163
{
164164
value: 'flex-end',
165165
title: __( 'Right', i18n ),
166-
icon: <SVGIconRight />,
166+
icon: <SVGIconRight width="24" height="24" />,
167167
},
168168
]
169169

170170
const VERTICAL_ALIGN_OPTIONS = [
171171
{
172172
value: 'flex-start',
173173
title: __( 'Top', i18n ),
174-
icon: <SVGIconTop />,
174+
icon: <SVGIconTop width="24" height="24" />,
175175
},
176176
{
177177
value: 'center',
178178
title: __( 'Center', i18n ),
179-
icon: <SVGIconVerticalCenter />,
179+
icon: <SVGIconVerticalCenter width="24" height="24" />,
180180
},
181181
{
182182
value: 'flex-end',
183183
title: __( 'Bottom', i18n ),
184-
icon: <SVGIconBottom />,
184+
icon: <SVGIconBottom width="24" height="24" />,
185185
},
186186
]
187187

0 commit comments

Comments
 (0)