Skip to content

Commit f0a5178

Browse files
authored
Merge pull request #84 from Automattic/add/toggle-hover-dialog-document
Add/toggle hover dialog document
2 parents 6a1513e + 9463499 commit f0a5178

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/system/Form/Toggle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export const Toggle = ( {
2323
className={ classNames( 'vip-toggle-component', className ) }
2424
sx={ {
2525
all: 'unset',
26+
cursor: 'pointer',
2627
position: 'relative',
2728
width: 40,
2829
height: 20,

src/system/NewDialog/NewDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const NewDialog = ( {
5656
<DialogTitle title={ title } hidden={ ! showHeading } />
5757
<DialogDescription description={ description } hidden={ ! showHeading } />
5858

59-
{ content }
59+
<div role="document">{ content }</div>
6060
</DialogPrimitive.Content>
6161
</DialogPrimitive.Portal>
6262
</DialogPrimitive.Root>

src/system/NewDialog/NewDialog.stories.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ export const HiddenHeadings = () => (
6161
<Input type="text" name="username" id="username" />
6262
<Button type="submit">Submit</Button>
6363
</form>
64+
65+
<h3>Continue here</h3>
66+
67+
<p>This is an example.</p>
6468
</div>
6569
}
6670
/>

0 commit comments

Comments
 (0)