Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tooltip][Joy] Fix arrow does not appear (#35473)
- Loading branch information
1 parent
d8078d9
commit 362229d
Showing
5 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import * as React from 'react'; | ||
import Button from '@mui/joy/Button'; | ||
import Sheet from '@mui/joy/Sheet'; | ||
import Tooltip from '@mui/joy/Tooltip'; | ||
|
||
export default function ArrowTooltips() { | ||
return ( | ||
<Tooltip title="Add" arrow> | ||
<Button variant="plain">Arrow</Button> | ||
</Tooltip> | ||
<Sheet sx={{ pr: 7 }}> | ||
<Tooltip title="Add" arrow open placement="right"> | ||
<Button variant="plain">Arrow</Button> | ||
</Tooltip> | ||
</Sheet> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import * as React from 'react'; | ||
import Button from '@mui/joy/Button'; | ||
import Sheet from '@mui/joy/Sheet'; | ||
import Tooltip from '@mui/joy/Tooltip'; | ||
|
||
export default function ArrowTooltips() { | ||
return ( | ||
<Tooltip title="Add" arrow> | ||
<Button variant="plain">Arrow</Button> | ||
</Tooltip> | ||
<Sheet sx={{ pr: 7 }}> | ||
<Tooltip title="Add" arrow open placement="right"> | ||
<Button variant="plain">Arrow</Button> | ||
</Tooltip> | ||
</Sheet> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<Tooltip title="Add" arrow> | ||
<Button variant="plain">Arrow</Button> | ||
</Tooltip> | ||
<Sheet sx={{ pr: 7 }}> | ||
<Tooltip title="Add" arrow open placement="right"> | ||
<Button variant="plain">Arrow</Button> | ||
</Tooltip> | ||
</Sheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters