File tree Expand file tree Collapse file tree 7 files changed +14
-19
lines changed
packages/samples/react/src Expand file tree Collapse file tree 7 files changed +14
-19
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const BadgeBasic: FC = () => (
1111 < p > KolBadge shows badges with a label, background color and optional icon.</ p >
1212 </ SampleDescription >
1313
14- < div className = "flex gap-2" >
14+ < div className = "flex flex-wrap gap-2" >
1515 < KolBadge _label = "black" > </ KolBadge >
1616 < KolBadge _color = "#86ffc6" _label = "teal" > </ KolBadge >
1717 < KolBadge _color = "#06539e" _label = "blue" > </ KolBadge >
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export const BadgeButton: FC = () => (
2323 </ p >
2424 </ SampleDescription >
2525
26- < div className = "flex gap-2" >
26+ < div className = "flex flex-wrap gap-2" >
2727 < KolBadge { ...createBadgeProps ( 'black' ) } > </ KolBadge >
2828 < KolBadge _color = "#86ffc6" { ...createBadgeProps ( 'teal' ) } > </ KolBadge >
2929 < KolBadge _color = "#06539e" { ...createBadgeProps ( 'blue' ) } > </ KolBadge >
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const ButtonBaselined: FC = () => {
1919 < p > This KolButton sample is used for internal testing purposes: It features multiple buttons with and without icons which are vertically aligned.</ p >
2020 </ SampleDescription >
2121
22- < div className = "flex" >
22+ < div className = "flex flex-wrap gap-2 " >
2323 < KolButton _label = "Label-Text" _on = { dummyEventHandler } > </ KolButton >
2424 < KolButton _label = "Label-Text" _on = { dummyEventHandler } > </ KolButton >
2525 < KolButton _label = "Label-Text" _on = { dummyEventHandler } > </ KolButton >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const LinkButtonAriaDescription: FC = () => (
99 < p > This sample shows KolLinkButton with aria-description</ p >
1010 </ SampleDescription >
1111
12- < div className = "flex flex-wrap gap-4 " >
12+ < div className = "flex flex-wrap gap-2 " >
1313 < KolLinkButton _href = "#/back-page" _label = "Link Button Text without area description" > </ KolLinkButton >
1414 < KolLinkButton _href = "#/back-page" _label = "Link Button Text" _ariaDescription = "Link Button Area Description" > </ KolLinkButton >
1515 </ div >
Original file line number Diff line number Diff line change @@ -15,16 +15,14 @@ export const LinkButtonBasic: FC = () => (
1515 < p > KolLinkButton renders a link that looks like a button. The sample shows the different styling variants.</ p >
1616 </ SampleDescription >
1717
18- < div className = "grid gap-14" >
19- < div className = "flex flex-wrap gap-14" >
20- < KolLinkButton _label = "Primary" _variant = "primary" { ...ARGS } > </ KolLinkButton >
21- < KolLinkButton _label = "Secondary" _variant = "secondary" { ...ARGS } > </ KolLinkButton >
22- < KolLinkButton _label = "Normal" _variant = "normal" { ...ARGS } > </ KolLinkButton >
23- < KolLinkButton _label = "Danger" _variant = "danger" { ...ARGS } > </ KolLinkButton >
24- < KolLinkButton _label = "Ghost" _variant = "ghost" { ...ARGS } > </ KolLinkButton >
25- < KolLinkButton _label = "Access Key" _variant = "primary" _accessKey = "c" { ...ARGS } > </ KolLinkButton >
26- < KolLinkButton _label = "Short Key" _variant = "primary" _shortKey = "s" { ...ARGS } > </ KolLinkButton >
27- </ div >
18+ < div className = "flex flex-wrap gap-2" >
19+ < KolLinkButton _label = "Primary" _variant = "primary" { ...ARGS } > </ KolLinkButton >
20+ < KolLinkButton _label = "Secondary" _variant = "secondary" { ...ARGS } > </ KolLinkButton >
21+ < KolLinkButton _label = "Normal" _variant = "normal" { ...ARGS } > </ KolLinkButton >
22+ < KolLinkButton _label = "Danger" _variant = "danger" { ...ARGS } > </ KolLinkButton >
23+ < KolLinkButton _label = "Ghost" _variant = "ghost" { ...ARGS } > </ KolLinkButton >
24+ < KolLinkButton _label = "Access Key" _variant = "primary" _accessKey = "c" { ...ARGS } > </ KolLinkButton >
25+ < KolLinkButton _label = "Short Key" _variant = "primary" _shortKey = "s" { ...ARGS } > </ KolLinkButton >
2826 </ div >
2927 </ >
3028) ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export const TreeBasic: FC = () => {
6666
6767 < p > Current tree item: { subPage ?? 'none' } </ p >
6868
69- < div className = "flex flex-row gap-2" >
69+ < div className = "flex flex-wrap gap-2" >
7070 < KolButton _label = "Change label for '1 Home'" _on = { { onClick : updateHomeLabel } } > </ KolButton >
7171 < KolButton _label = "Toggle '2.1.2.2 Pets'" _on = { { onClick : ( ) => setShowPets ( ! showPets ) } } > </ KolButton >
7272 < KolButton _label = "Toggle '2.2.1 Europe' (two levels at once)" _on = { { onClick : ( ) => setShowEurope ( ! showEurope ) } } > </ KolButton >
Original file line number Diff line number Diff line change 2323
2424.indented-text {
2525 p {
26- font-family : var (--font-family );
27- border-left : -2px solid var (--color-primary-variant );
28- padding : 0 calc (8rem / var (--kolibri-root-font-size , 16 ));
29- margin-left : rem (-2 );
26+ margin : 0 ;
3027 }
3128}
3229
You can’t perform that action at this time.
0 commit comments