Skip to content

Commit 91f9dc1

Browse files
committed
Add button wrap, gap and padding
1 parent e10424e commit 91f9dc1

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

plugin/assets/css/src/components/button.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
/* @alternate */
5757
-webkit-text-decoration: var(--mdc-typography-button-text-decoration, none);
58-
padding: 0 8px 0 8px;
58+
padding: 10px 8px;
5959

6060
/* @alternate */
6161
position: relative;
@@ -250,7 +250,7 @@ svg.mdc-button__icon {
250250
.mdc-button--elevated,
251251
.mdc-button--filled,
252252
.mdc-button--unelevated {
253-
padding: 0 16px 0 16px;
253+
padding: 10px 16px;
254254
}
255255

256256
.mdc-button--raised:not(:disabled),
@@ -319,7 +319,7 @@ svg.mdc-button__icon {
319319
}
320320

321321
.mdc-button--outlined {
322-
padding: 0 15px 0 15px;
322+
padding: 10px 15px;
323323
border-width: 1px;
324324
border-style: solid;
325325
}

plugin/assets/css/src/components/material.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,14 +321,12 @@
321321
.wp-block-material-buttons {
322322
align-items: center;
323323
display: flex;
324+
flex-wrap: wrap;
325+
gap: 8px;
324326

325327
&.aligncenter {
326328
justify-content: center;
327329
}
328-
329-
& .mdc-button {
330-
margin-right: 8px;
331-
}
332330
}
333331

334332
/* Icon */

0 commit comments

Comments
 (0)