Skip to content

Commit 47d5bd4

Browse files
benoitgrelardandy-hook
authored andcommitted
Document allowPinchZoom changes (#433)
* Document `allowPinchZoom` changes * Feedback
1 parent 9265bac commit 47d5bd4

File tree

7 files changed

+5
-154
lines changed

7 files changed

+5
-154
lines changed

data/primitives/components/alert-dialog/0.1.8.mdx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -94,31 +94,6 @@ Contains all the parts of an alert dialog.
9494
description:
9595
'Event handler called when the open state of the dialog changes.',
9696
},
97-
{
98-
name: 'allowPinchZoom',
99-
required: false,
100-
type: 'boolean',
101-
default: 'false',
102-
description: (
103-
<span>
104-
The <Code>allowPinchZoom</Code> prop from{' '}
105-
<Link
106-
variant="blue"
107-
href="https://github.com/theKashey/react-remove-scroll"
108-
target="_blank"
109-
>
110-
react-remove-scroll
111-
</Link>
112-
. See <Link
113-
variant="blue"
114-
href="https://github.com/theKashey/react-remove-scroll#usage"
115-
target="_blank"
116-
>
117-
their docs
118-
</Link> for information on functionality and limitations.
119-
</span>
120-
),
121-
},
12297
{
12398
name: 'id',
12499
type: 'string',

data/primitives/components/context-menu/0.1.7.mdx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -130,31 +130,6 @@ Contains all the parts of a context menu.
130130
</span>
131131
),
132132
},
133-
{
134-
name: 'allowPinchZoom',
135-
required: false,
136-
type: 'boolean',
137-
default: 'false',
138-
description: (
139-
<span>
140-
The <Code>allowPinchZoom</Code> prop from{' '}
141-
<Link
142-
variant="blue"
143-
href="https://github.com/theKashey/react-remove-scroll"
144-
target="_blank"
145-
>
146-
react-remove-scroll
147-
</Link>
148-
. See <Link
149-
variant="blue"
150-
href="https://github.com/theKashey/react-remove-scroll#usage"
151-
target="_blank"
152-
>
153-
their docs
154-
</Link> for information on functionality and limitations.
155-
</span>
156-
),
157-
},
158133
]}
159134
/>
160135

data/primitives/components/dialog/0.1.8.mdx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -114,31 +114,6 @@ Contains all the parts of a dialog.
114114
</span>
115115
),
116116
},
117-
{
118-
name: 'allowPinchZoom',
119-
required: false,
120-
type: 'boolean',
121-
default: 'false',
122-
description: (
123-
<span>
124-
The <Code>allowPinchZoom</Code> prop from{' '}
125-
<Link
126-
variant="blue"
127-
href="https://github.com/theKashey/react-remove-scroll"
128-
target="_blank"
129-
>
130-
react-remove-scroll
131-
</Link>
132-
. See <Link
133-
variant="blue"
134-
href="https://github.com/theKashey/react-remove-scroll#usage"
135-
target="_blank"
136-
>
137-
their docs
138-
</Link> for information on functionality and limitations.
139-
</span>
140-
),
141-
},
142117
{
143118
name: 'id',
144119
type: 'string',

data/primitives/components/dropdown-menu/0.1.7.mdx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -140,31 +140,6 @@ Contains all the parts of a dropdown menu.
140140
</span>
141141
),
142142
},
143-
{
144-
name: 'allowPinchZoom',
145-
required: false,
146-
type: 'boolean',
147-
default: 'false',
148-
description: (
149-
<span>
150-
The <Code>allowPinchZoom</Code> prop from{' '}
151-
<Link
152-
variant="blue"
153-
href="https://github.com/theKashey/react-remove-scroll"
154-
target="_blank"
155-
>
156-
react-remove-scroll
157-
</Link>
158-
. See <Link
159-
variant="blue"
160-
href="https://github.com/theKashey/react-remove-scroll#usage"
161-
target="_blank"
162-
>
163-
their docs
164-
</Link> for information on functionality and limitations.
165-
</span>
166-
),
167-
},
168143
{
169144
name: 'dir',
170145
required: false,

data/primitives/components/popover/0.1.7.mdx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -110,31 +110,6 @@ Contains all the parts of a popover.
110110
</span>
111111
),
112112
},
113-
{
114-
name: 'allowPinchZoom',
115-
required: false,
116-
type: 'boolean',
117-
default: 'false',
118-
description: (
119-
<span>
120-
The <Code>allowPinchZoom</Code> prop from{' '}
121-
<Link
122-
variant="blue"
123-
href="https://github.com/theKashey/react-remove-scroll"
124-
target="_blank"
125-
>
126-
react-remove-scroll
127-
</Link>
128-
. See <Link
129-
variant="blue"
130-
href="https://github.com/theKashey/react-remove-scroll#usage"
131-
target="_blank"
132-
>
133-
their docs
134-
</Link> for information on functionality and limitations.
135-
</span>
136-
),
137-
},
138113
]}
139114
/>
140115

data/primitives/components/select/0.1.2.mdx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -157,31 +157,6 @@ Contains all the parts of a select.
157157
description:
158158
'The name of the select. Submitted with its owning form as part of a name/value pair.',
159159
},
160-
{
161-
name: 'allowPinchZoom',
162-
required: false,
163-
type: 'boolean',
164-
default: 'false',
165-
description: (
166-
<span>
167-
The <Code>allowPinchZoom</Code> prop from{' '}
168-
<Link
169-
variant="blue"
170-
href="https://github.com/theKashey/react-remove-scroll"
171-
target="_blank"
172-
>
173-
react-remove-scroll
174-
</Link>
175-
. See <Link
176-
variant="blue"
177-
href="https://github.com/theKashey/react-remove-scroll#usage"
178-
target="_blank"
179-
>
180-
their docs
181-
</Link> for information on functionality and limitations.
182-
</span>
183-
),
184-
},
185160
]}
186161
/>
187162

data/primitives/overview/releases.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,28 @@ metaDescription: Radix Primitives releases and their changelogs.
1818

1919
- Improve compatibility with JS animation libraries with `forceMount` on `AlertDialog.Portal` <PRLink id={1075} />
2020
- Fix regressions with page interactivity while/after closing dialog <PRLink id={1401} />
21+
- [**Breaking**] Remove `allowPinchZoom` prop, now defaults to `true` <PRLink id={1514} />
2122

2223
<PackageRelease name="Context Menu" version="0.1.7" />
2324

2425
- Fix issue with native context menu appearing in React 18 <PRLink id={1378} />
2526
- Add `data-highlighted` attribute to support styling <PRLink id={1388} />
2627
- [**Breaking**] Improve indirect nesting of context menus. Submenus must now be created using explicit parts. <PRLink id={1394} />
27-
- [**Breaking**] Move `allowPinchZoom` to root. <PRLink id={1400} />
28+
- [**Breaking**] Remove `allowPinchZoom` prop, now defaults to `true` <PRLink id={1514} />
2829
- [**Breaking**] Add new `Portal` part. To avoid regressions, use this part if you want portalling behavior. Note that `z-index` isn't managed anymore so you have full control of layering. <PRLink id={1429} />
2930
- Add `data-state` attribute to `Trigger` part <PRLink id={1455} />
3031

3132
<PackageRelease name="Dialog" version="0.1.8" />
3233

3334
- Improve compatibility with JS animation libraries with `forceMount` on `Dialog.Portal` <PRLink id={1075} />
3435
- Fix regressions with page interactivity while/after closing dialog <PRLink id={1401} />
36+
- [**Breaking**] Remove `allowPinchZoom` prop, now defaults to `true` <PRLink id={1514} />
3537

3638
<PackageRelease name="Dropdown Menu" version="0.1.7" />
3739

3840
- Add `data-highlighted` attribute to support styling <PRLink id={1388} />
3941
- [**Breaking**] Improve indirect nesting of dropdown menus. Submenus must now be created using explicit parts. <PRLink id={1394} />
40-
- [**Breaking**] Move `allowPinchZoom` to root <PRLink id={1400} />
42+
- [**Breaking**] Remove `allowPinchZoom` prop, now defaults to `true` <PRLink id={1514} />
4143
- Prevent escape key from exiting fullscreen mode in Firefox & Safari <PRLink id={1423} />
4244
- [**Breaking**] Add new `Portal` part. To avoid regressions, use this part if you want portalling behavior. Note that `z-index` isn't managed anymore so you have full control of layering. <PRLink id={1429} />
4345

@@ -52,7 +54,7 @@ metaDescription: Radix Primitives releases and their changelogs.
5254

5355
<PackageRelease name="Popover" version="0.1.7" />
5456

55-
- [**Breaking**] Move `allowPinchZoom` to root <PRLink id={1400} />
57+
- [**Breaking**] Remove `allowPinchZoom` prop, now defaults to `true` <PRLink id={1514} />
5658
- [**Breaking**] Add new `Portal` part. To avoid regressions, use this part if you want portalling behavior. Note that `z-index` isn't managed anymore so you have full control of layering. <PRLink id={1425} />
5759

5860
<PackageRelease name="Portal" version="0.1.5" />
@@ -78,7 +80,6 @@ metaDescription: Radix Primitives releases and their changelogs.
7880
- Add support for placeholder via `placeholder` prop on `Select.Value` <PRLink id={1384} />
7981
- Resolve value mismatch with underlying native select <PRLink id={1421} />
8082
- [**Breaking**] Add new `Portal` part. To avoid regressions, use this part if you want portalling behavior. Note that `z-index` isn't managed anymore so you have full control of layering. <PRLink id={1459} />
81-
- Add pinch to zoom support via `allowPinchZoom` prop on `Select.Root` <PRLink id={1459} />
8283

8384
<PackageRelease name="Slot" version="0.1.3" />
8485

0 commit comments

Comments
 (0)