Skip to content

Commit 3322d25

Browse files
Fix broken styles for examples
1 parent df56aaf commit 3322d25

21 files changed

+106
-473
lines changed

articles/components/flex-layout/index.adoc

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ The Flow API provides convenient constants and methods that make Flex Layout con
2626

2727
[.example]
2828
--
29+
[source,typescript]
30+
----
31+
include::{root}/frontend/demo/component/flex-layout/flex-layout-basic.ts[preimport,hidden]
32+
----
2933

3034
[source,java]
3135
----
@@ -36,6 +40,10 @@ include::{root}/src/main/java/com/vaadin/demo/component/flexlayout/FlexLayoutBas
3640
By default, Flex Layout arranges its items in a single horizontal row without wrapping.
3741
This behavior corresponds to the CSS `flex-wrap` property, which can be easily customized through the API.
3842

43+
[NOTE]
44+
For all examples in this document, custom gaps and padding have been applied to make the layouts clearer and less cluttered.
45+
In real-world applications, you would typically adjust these values as needed to achieve the desired spacing and sizing.
46+
3947

4048
== Direction
4149

@@ -44,6 +52,10 @@ You can change this behavior by setting a different direction, which corresponds
4452

4553
[.example]
4654
--
55+
[source,typescript]
56+
----
57+
include::{root}/frontend/demo/component/flex-layout/flex-layout-direction.ts[preimport,hidden]
58+
----
4759

4860
[source,java]
4961
----
@@ -77,6 +89,11 @@ This corresponds to the CSS `flex-wrap` property.
7789
[.example]
7890
--
7991

92+
[source,typescript]
93+
----
94+
include::{root}/frontend/demo/component/flex-layout/flex-layout-wrap.ts[preimport,hidden]
95+
----
96+
8097
[source,java]
8198
----
8299
include::{root}/src/main/java/com/vaadin/demo/component/flexlayout/FlexLayoutWrap.java[render,tags=snippet,indent=0,group=Flow]
@@ -109,6 +126,11 @@ This corresponds to the CSS `align-content` property.
109126
[.example]
110127
--
111128

129+
[source,typescript]
130+
----
131+
include::{root}/frontend/demo/component/flex-layout/flex-layout-content-alignment.ts[preimport,hidden]
132+
----
133+
112134
[source,java]
113135
----
114136
include::{root}/src/main/java/com/vaadin/demo/component/flexlayout/FlexLayoutContentAlignment.java[render,tags=snippet,indent=0,group=Flow]
@@ -148,6 +170,11 @@ This corresponds to the CSS `justify-content` property.
148170
[.example]
149171
--
150172

173+
[source,typescript]
174+
----
175+
include::{root}/frontend/demo/component/flex-layout/flex-layout-justify-content.ts[preimport,hidden]
176+
----
177+
151178
[source,java]
152179
----
153180
include::{root}/src/main/java/com/vaadin/demo/component/flexlayout/FlexLayoutJustifyContent.java[render,tags=snippet,indent=0,group=Flow]
@@ -187,6 +214,11 @@ Individual items can override the layout’s alignment setting using the `align-
187214
[.example]
188215
--
189216

217+
[source,typescript]
218+
----
219+
include::{root}/frontend/demo/component/flex-layout/flex-layout-item-alignment.ts[preimport,hidden]
220+
----
221+
190222
[source,java]
191223
----
192224
include::{root}/src/main/java/com/vaadin/demo/component/flexlayout/FlexLayoutItemAlignment.java[render,tags=snippet,indent=0,group=Flow]
@@ -229,6 +261,11 @@ Setting a component’s order back to `0` removes any custom ordering and restor
229261
[.example]
230262
--
231263

264+
[source,typescript]
265+
----
266+
include::{root}/frontend/demo/component/flex-layout/flex-layout-item-order.ts[preimport,hidden]
267+
----
268+
232269
[source,java]
233270
----
234271
include::{root}/src/main/java/com/vaadin/demo/component/flexlayout/FlexLayoutItemOrder.java[render,tags=snippet,indent=0,group=Flow]
@@ -243,6 +280,11 @@ This corresponds to the CSS `flex-basis` property.
243280
[.example]
244281
--
245282

283+
[source,typescript]
284+
----
285+
include::{root}/frontend/demo/component/flex-layout/flex-layout-basis.ts[preimport,hidden]
286+
----
287+
246288
[source,java]
247289
----
248290
include::{root}/src/main/java/com/vaadin/demo/component/flexlayout/FlexLayoutBasis.java[render,tags=snippet,indent=0,group=Flow]
@@ -262,6 +304,11 @@ The `flex-shrink` property defines how much a component contracts relative to ot
262304
[.example]
263305
--
264306

307+
[source,typescript]
308+
----
309+
include::{root}/frontend/demo/component/flex-layout/flex-layout-flex-grow-shrink.ts[preimport,hidden]
310+
----
311+
265312
[source,java]
266313
----
267314
include::{root}/src/main/java/com/vaadin/demo/component/flexlayout/FlexLayoutFlexGrowShrink.java[render,tags=snippet,indent=0,group=Flow]

0 commit comments

Comments
 (0)