Skip to content

Commit

Permalink
Fix Modal previews not being rendered because of a misplaced comment
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkudrna committed Oct 18, 2023
1 parent 196518d commit 67341b0
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions src/components/Modal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ React.createElement(() => {
const [modalOpen, setModalOpen] = React.useState(false);
const modalPrimaryButtonRef = React.useRef();
const modalCloseButtonRef = React.useRef();
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
return (
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
<RUIProvider globalProps={{
Modal: { preventScrollUnderneath: window.document.documentElement }
}}>
Expand Down Expand Up @@ -121,11 +121,11 @@ React.createElement(() => {
const [modalOpen, setModalOpen] = React.useState(null);
const modalPrimaryButtonRef = React.useRef();
const modalCloseButtonRef = React.useRef();
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
return (
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
<RUIProvider globalProps={{
Modal: { preventScrollUnderneath: window.document.documentElement }
}}>
Expand Down Expand Up @@ -276,11 +276,11 @@ React.createElement(() => {
const [variant, setVariant] = React.useState(null);
const modalPrimaryButtonRef = React.useRef();
const modalCloseButtonRef = React.useRef();
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
return (
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
<RUIProvider globalProps={{
Modal: { preventScrollUnderneath: window.document.documentElement }
}}>
Expand Down Expand Up @@ -410,11 +410,11 @@ React.createElement(() => {
const [modalJustify, setModalJustify] = React.useState('center');
const modalPrimaryButtonRef = React.useRef();
const modalCloseButtonRef = React.useRef();
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
return (
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
<RUIProvider globalProps={{
Modal: { preventScrollUnderneath: window.document.documentElement }
}}>
Expand Down Expand Up @@ -533,11 +533,11 @@ React.createElement(() => {
const [modalSize, setModalSize] = React.useState('small');
const modalPrimaryButtonRef = React.useRef();
const modalCloseButtonRef = React.useRef();
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
return (
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
<RUIProvider globalProps={{
Modal: { preventScrollUnderneath: window.document.documentElement }
}}>
Expand Down Expand Up @@ -617,11 +617,11 @@ React.createElement(() => {
const [modalOpen, setModalOpen] = React.useState(false);
const modalPrimaryButtonRef = React.useRef();
const modalCloseButtonRef = React.useRef();
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
return (
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
<RUIProvider globalProps={{
Modal: { preventScrollUnderneath: window.document.documentElement }
}}>
Expand Down Expand Up @@ -685,11 +685,11 @@ React.createElement(() => {
const [modalOpen, setModalOpen] = React.useState(false);
const modalPrimaryButtonRef = React.useRef();
const modalCloseButtonRef = React.useRef();
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
return (
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
<RUIProvider globalProps={{
Modal: { preventScrollUnderneath: window.document.documentElement }
}}>
Expand Down Expand Up @@ -749,11 +749,11 @@ React.createElement(() => {
const [modalPosition, setModalPosition] = React.useState('center');
const modalPrimaryButtonRef = React.useRef();
const modalCloseButtonRef = React.useRef();
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
return (
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
<RUIProvider globalProps={{
Modal: { preventScrollUnderneath: window.document.documentElement }
}}>
Expand Down Expand Up @@ -930,12 +930,12 @@ React.createElement(() => {
ut, imperdiet a, venenatis vitae, justo.
</p>
</ModalContent>
)
);
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
return (
{/*
The `preventScrollUnderneath` feature is necessary for Modals to work in
React UI docs. You may not need it in your application.
*/}
<RUIProvider globalProps={{
Modal: { preventScrollUnderneath: window.document.documentElement }
}}>
Expand Down

0 comments on commit 67341b0

Please sign in to comment.