Skip to content

Commit 9cc0b3e

Browse files
authored
fix: update grid classes for responsive design (#7629)
2 parents 1c12340 + 7f1bf33 commit 9cc0b3e

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
@@ -190,7 +190,7 @@ export const HandoutBasic: FC = () => {
190190

191191
return (
192192
<div className="grid gap-4">
193-
<div className="grid gap-4 grid-cols-[auto_1fr_1fr] items-center">
193+
<div className="grid gap-4 md:grid-cols-[auto_1fr_1fr] items-center">
194194
<KolKolibri className="block w-75px" _labeled={false}></KolKolibri>
195195
<KolHeading _label="" _level={1}>
196196
<span slot="expert">
@@ -441,7 +441,7 @@ export const HandoutBasic: FC = () => {
441441
</KolCard>
442442
<KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5" _label="Input" _level={2}>
443443
<KolForm slot="">
444-
<div className="grid gap-4 grid-cols-3 p-2">
444+
<div className="grid gap-4 sm:grid-cols-2 md:grid-cols-3 p-2">
445445
<KolInputColor _label={`Color`} />
446446
<KolInputFile _label={`Upload file`} />
447447
<KolInputNumber _label={`Number input`} />
@@ -460,7 +460,9 @@ export const HandoutBasic: FC = () => {
460460
<div className="grid gap-4">
461461
<KolInputRadio _orientation="horizontal" _options="[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]" _value="0" _label={`Salutation`} />
462462
<KolInputCheckbox _label="">
463-
I accept the <KolAbbr _label="General Terms and Conditions">AGB</KolAbbr>.
463+
<span slot="expert">
464+
I accept the <KolAbbr _label="General Terms and Conditions">AGB</KolAbbr>.
465+
</span>
464466
</KolInputCheckbox>
465467
</div>
466468
<KolTextarea _rows={4} _label={`Textarea`} />

0 commit comments

Comments
 (0)