Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/dev/s2-docs/pages/s2/Tooltip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import {Tooltip, TooltipTrigger} from '@react-spectrum/s2/Tooltip';
import {ActionButton} from '@react-spectrum/s2/ActionButton';
import Edit from '@react-spectrum/s2/icons/Edit';

<TooltipTrigger>
<TooltipTrigger/* PROPS */>
<ActionButton aria-label="Edit name"><Edit /></ActionButton>
<Tooltip/* PROPS */>Edit name</Tooltip>
<Tooltip>Edit name</Tooltip>
</TooltipTrigger>
```

Expand Down
2 changes: 1 addition & 1 deletion packages/dev/s2-docs/src/VisualExampleClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ function renderProp(name: string, value: any, control?: PropControl, indent = ''
</>
);
} else if (typeof value === 'boolean') {
if (value === false && control?.optional) {
if (value === false && control?.optional && !control?.default) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

out of curiosity, what was this change for?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2026-08-04 at 6 27 39 am

prior to this change a "false" boolean would just be omitted

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohh okay i see what you mean, ty

return null;
}
if (name === 'contextualHelp') {
Expand Down