Skip to content

Commit f8a6d93

Browse files
authored
fix: update grid classes for responsive design (#7628)
2 parents b51f54c + 4847cbd commit f8a6d93

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/samples/react/src/components/SampleDescription.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const SampleDescription: FC<PropsWithChildren> = (props) => {
2929
<>
3030
<h1 className="visually-hidden">{location.pathname.replace(/\//g, ' ')}</h1>
3131
{hideMenus ? null : (
32-
<div className="grid sm:flex gap-4 justify-between pb-sm border-b-1 border-b-solid border-gray">
32+
<div className="grid sm:flex gap-4 justify-between pb-sm border-b-1 border-b-solid border-gray mb-2">
3333
<div className="indented-text">{props.children}</div>
3434
<ul className="flex flex-wrap gap-2 list-none m-0 p-0">
3535
{codeLink && (

packages/samples/react/src/components/handout/basic.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export const HandoutBasic: FC = () => {
194194

195195
return (
196196
<div className="grid gap-4">
197-
<div className="grid gap-4 grid-cols-[auto_1fr_1fr] items-center">
197+
<div className="grid gap-4 md:grid-cols-[auto_1fr_1fr] items-center">
198198
<KolKolibri className="block w-75px" _labeled={false}></KolKolibri>
199199
<KolHeading _label="" _level={1}>
200200
<span slot="expert">
@@ -469,7 +469,7 @@ export const HandoutBasic: FC = () => {
469469
</KolCard>
470470
<KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5" _label="Input" _level={2}>
471471
<KolForm slot="">
472-
<div className="grid gap-4 grid-cols-3 p-2">
472+
<div className="grid gap-4 sm:grid-cols-2 md:grid-cols-3 p-2">
473473
<KolInputColor _label={`Color`} />
474474
<KolInputFile _label={`Upload file`} />
475475
<KolInputNumber _label={`Number input`} />
@@ -488,7 +488,9 @@ export const HandoutBasic: FC = () => {
488488
<div className="grid gap-4">
489489
<KolInputRadio _orientation="horizontal" _options="[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]" _value="0" _label={`Salutation`} />
490490
<KolInputCheckbox _label="">
491-
I accept the <KolAbbr _label="General Terms and Conditions">AGB</KolAbbr>.
491+
<span slot="expert">
492+
I accept the <KolAbbr _label="General Terms and Conditions">AGB</KolAbbr>.
493+
</span>
492494
</KolInputCheckbox>
493495
</div>
494496
<KolTextarea _rows={4} _label={`Textarea`} />

0 commit comments

Comments
 (0)