Skip to content

Commit 214e9bc

Browse files
authored
Merge branch 'main' into docs/button-variants-table
2 parents a5c5ac2 + c9f3ed5 commit 214e9bc

File tree

4 files changed

+45
-63
lines changed

4 files changed

+45
-63
lines changed

articles/components/button/styling.adoc

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -309,66 +309,52 @@ include::../_styling-section-theming-props.adoc[tag=style-properties]
309309

310310
=== Common Properties
311311

312-
[cols="1,3,1"]
312+
[cols="2,1"]
313313
|===
314-
| Feature | Property | Supported by
314+
| Property | Supported by
315315

316-
|Background
317316
|`--vaadin-button-background`
318317
|Aura, Lumo
319318

320-
|Text Color
321-
|`--vaadin-button-text-color`
322-
|Aura, Lumo
323-
324-
|Font Weight
325-
|`--vaadin-button-font-weight`
326-
|Aura, Lumo
327-
328-
|Font Size
329-
|`--vaadin-button-font-size`
330-
|Aura, Lumo
331-
332-
|Border
333319
|`--vaadin-button-border`
334320
|Lumo
335321

336-
|Border
337322
|`--vaadin-button-border-color`
338323
|Aura
339324

340-
|Border
341-
|`--vaadin-button-border-width`
342-
|Aura
343-
344-
|Border Radius
345325
|`--vaadin-button-border-radius`
346326
|Aura, Lumo
347327

348-
|Padding
349-
|`--vaadin-button-padding`
328+
|`--vaadin-button-border-width`
329+
|Aura
330+
331+
|`--vaadin-button-font-size`
350332
|Aura, Lumo
351333

352-
|Margin
353-
|`--vaadin-button-margin`
334+
|`--vaadin-button-font-weight`
354335
|Aura, Lumo
355336

356-
|Gap
357337
|`--vaadin-button-gap`
358338
|Aura
359339

360-
|Height
361340
|`--vaadin-button-height`
362341
|Aura, Lumo
363342

364-
|Line Height
365343
|`--vaadin-button-line-height`
366344
|Aura
367345

368-
|Min-Width
346+
|`--vaadin-button-margin`
347+
|Aura, Lumo
348+
369349
|`--vaadin-button-min-width`
370350
|Lumo
371351

352+
|`--vaadin-button-padding`
353+
|Aura, Lumo
354+
355+
|`--vaadin-button-text-color`
356+
|Aura, Lumo
357+
372358
|===
373359

374360

articles/components/form-layout/index.adoc

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -379,28 +379,6 @@ include::{root}/frontend/demo/component/formlayout/form-layout-colspan.ts[render
379379

380380
Column span is capped to the number of columns currently in the layout to prevent overflow.
381381

382-
== Spacing
383-
384-
Form Layout allows you to configure the spacing between columns, rows, and between the label and input field when labels are positioned on the side.
385-
386-
Use the following CSS properties on individual `vaadin-form-layout` elements, or globally on the `html` element. The Flow API also provides setters for these properties.
387-
388-
|===
389-
|Spacing |CSS Property |Flow API
390-
391-
|Between columns
392-
|`--vaadin-form-layout-column-spacing`
393-
|`setColumnSpacing`
394-
395-
|Between rows
396-
|`--vaadin-form-layout-row-spacing`
397-
|`setRowSpacing`
398-
399-
|Between side label and field
400-
|`--vaadin-form-layout-label-spacing`
401-
|`setLabelSpacing`
402-
|===
403-
404382
== Miscellaneous
405383

406384
=== Form Item Usage

articles/components/form-layout/styling.adoc

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,42 @@ order: 50
77
---
88
= Form Layout Styling
99

10-
include::../_styling-section-intros.adoc[tag=properties]
10+
include::../_styling-section-theming-props.adoc[tag=style-properties]
11+
12+
=== Spacing
13+
14+
Form Layout allows you to configure the spacing between columns, rows, and between the label and input field when labels are positioned on the side.
15+
16+
Use the following CSS properties on individual `vaadin-form-layout` elements, or globally on the `html` element. The Flow API also provides setters for these properties.
1117

1218
[cols="2,3,2"]
1319
|===
14-
| Feature | Property | Default Value
20+
|Spacing |CSS Property |Flow API
1521

16-
|Spacing between columns
22+
|Between columns
1723
|`--vaadin-form-layout-column-spacing`
18-
|`--lumo-space-l`
24+
|`setColumnSpacing`
1925

20-
|Spacing between rows
26+
|Between rows
2127
|`--vaadin-form-layout-row-spacing`
22-
|`0`
28+
|`setRowSpacing`
2329

24-
|Spacing between side label and field
30+
|Between side label and field
2531
|`--vaadin-form-layout-label-spacing`
26-
|`1em`
32+
|`setLabelSpacing`
33+
|===
34+
35+
=== Sizing
36+
37+
Form Layout allows you to configure the width of the labels when they are positioned on the side.
38+
39+
[cols="2,3,2"]
40+
|===
41+
| Feature | CSS Property | Flow API
2742

2843
|Side label width
2944
|`--vaadin-form-layout-label-width`
30-
|`8em`
45+
|`setLabelWidth`
3146
|===
3247

3348
include::../_styling-section-intros.adoc[tag=selectors]

dspublisher/theme/global.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ html {
9595
--docs-example-render-font-family:
9696
-apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif,
9797
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
98-
--docs-example-render-color: light-dark(hsla(214, 40%, 16%, 0.94), hsla(214, 96%, 96%, 0.9));
99-
--docs-example-render-background-color: light-dark(#fff, hsl(214, 35%, 21%));
98+
--docs-example-render-color: hsla(214, 40%, 16%, 0.94);
99+
--docs-example-render-background-color: #fff;
100100
}
101101

102102
::-moz-selection {
@@ -281,6 +281,9 @@ html[theme~='dark'] {
281281
--docs-before-background-color: #301821;
282282
--docs-after-background-color: #172e1f;
283283
--docs-before-after-border-color: var(--gray-600);
284+
285+
--docs-example-render-color: hsla(214, 96%, 96%, 0.9);
286+
--docs-example-render-background-color: hsl(214, 35%, 21%);
284287
}
285288

286289
/* Vaadin logo text color (adapt to dark mode) */

0 commit comments

Comments
 (0)