Skip to content

Commit

Permalink
docs(ui-modal): screenreader no longer makes unnecessary annoncements…
Browse files Browse the repository at this point in the history
… in Modal examples

Closes: INSTUI-4286
  • Loading branch information
ToMESSKa committed Nov 6, 2024
1 parent 87623f7 commit b3e54eb
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/ui-modal/src/Modal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ by using the `padding` prop on the `<Modal.Body/>` if the use case requires it.
}}
onSubmit={this.handleFormSubmit}
size="auto"
label="Modal Dialog: Hello World"
label="Hello World"
shouldCloseOnDocumentClick
>
<Modal.Header>
Expand Down Expand Up @@ -127,7 +127,7 @@ by using the `padding` prop on the `<Modal.Body/>` if the use case requires it.
}}
onSubmit={handleFormSubmit}
size="auto"
label="Modal Dialog: Hello World"
label="Hello World"
shouldCloseOnDocumentClick
>
<Modal.Header>
Expand Down Expand Up @@ -204,7 +204,7 @@ Setting the `constrain` property to `parent` will constrain the Modal within the
this.setState({ open: false })
}}
size="fullscreen"
label="Modal Dialog: Hello World"
label="Hello World"
shouldCloseOnDocumentClick
mountNode={() => document.getElementById('constrainExample')}
constrain="parent"
Expand Down Expand Up @@ -329,7 +329,7 @@ Setting the `constrain` property to `parent` will constrain the Modal within the
setOpen(false)
}}
size="fullscreen"
label="Modal Dialog: Hello World"
label="Hello World"
shouldCloseOnDocumentClick
mountNode={() => document.getElementById('constrainExample')}
constrain="parent"
Expand Down Expand Up @@ -448,7 +448,7 @@ Setting the `constrain` property to `parent` will constrain the Modal within the
this.setState({ open: false })
}}
size="auto"
label="Modal Dialog: Hello Media"
label="Hello Media"
shouldCloseOnDocumentClick
variant="inverse"
>
Expand Down Expand Up @@ -515,7 +515,7 @@ Setting the `constrain` property to `parent` will constrain the Modal within the
setOpen(false)
}}
size="auto"
label="Modal Dialog: Hello Media"
label="Hello Media"
shouldCloseOnDocumentClick
variant="inverse"
>
Expand Down Expand Up @@ -637,7 +637,7 @@ use the [Img](#Img) component's `constrain` property to fit the image inside Mod
this.setState({ open: false })
}}
size={this.state.modalSize}
label="Modal Dialog: Hello Media"
label="Hello Media"
shouldCloseOnDocumentClick
variant="inverse"
overflow="fit"
Expand Down Expand Up @@ -775,7 +775,7 @@ use the [Img](#Img) component's `constrain` property to fit the image inside Mod
setOpen(false)
}}
size={modalSize}
label="Modal Dialog: Hello Media"
label="Hello Media"
shouldCloseOnDocumentClick
variant="inverse"
overflow="fit"
Expand Down Expand Up @@ -907,7 +907,7 @@ On smaller viewports (like mobile devices or scaled-up UI), we don't want to los
this.setState({ open: false })
}
}}
label="Modal Dialog: Hello World"
label="Hello World"
shouldCloseOnDocumentClick
mountNode={() => document.getElementById('viewportExample')}
constrain="parent"
Expand Down Expand Up @@ -1005,7 +1005,7 @@ On smaller viewports (like mobile devices or scaled-up UI), we don't want to los
setOpen(false)
}
}}
label="Modal Dialog: Hello World"
label="Hello World"
shouldCloseOnDocumentClick
mountNode={() => document.getElementById('viewportExample')}
constrain="parent"
Expand Down Expand Up @@ -1100,7 +1100,7 @@ class Example extends React.Component {
open={this.state.open}
onDismiss={() => { this.setState({ open: false }) }}
size="large"
label="Modal Dialog: Hello World"
label="Hello World"
shouldCloseOnDocumentClick
variant='inverse'
overflow='scroll'
Expand Down

0 comments on commit b3e54eb

Please sign in to comment.