File tree 1 file changed +6
-3
lines changed
packages/components/src/styles/components/layout
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 23
23
)
24
24
);
25
25
26
- // gap: rowGap, columnGap
26
+ // Note: The gap style is defined here to avoid setting it repeatedly for the gap size variants defined below.
27
+ // For the gap size variants, we override the value of the gap custom properties to set the desired sizes.
27
28
gap :
28
- var (--hds-layout-grid-row-gap , var (--hds-layout-grid-gap , 0 ))
29
- var (--hds-layout-grid-column-gap , var (--hds-layout-grid-gap , 0 ));
29
+ var (--hds-layout-grid-row-gap , var (--hds-layout-grid-gap , 0 )) // rowGap
30
+ var (--hds-layout-grid-column-gap , var (--hds-layout-grid-gap , 0 )); // columnGap
30
31
}
31
32
32
33
// inline
46
47
47
48
// gap
48
49
50
+ // We set the values of the gap custom properties overriding the default value of 0px
51
+
49
52
// set row & column gap together
50
53
.hds-layout-grid--gap-4 { --hds-layout-grid-gap : 4px ;}
51
54
.hds-layout-grid--gap-8 { --hds-layout-grid-gap : 8px ; }
You can’t perform that action at this time.
0 commit comments