# Source: https://react-spectrum.adobe.com/releases/v0-5-0.md

# v0.5.0

Version 0.5.0 includes major updates to Dialog and DialogTrigger APIs with four new dialog components: Dialog, FullscreenDialog, CustomDialog, and Popover. This release also improves style macro documentation and adds support for arbitrary pixel sizing.

In this release we have updated our Dialog and DialogTrigger APIs to improve layout flexibility for custom dialogs and popovers. Dialog has been split into four components:

* [Dialog](../Dialog.md) â a modal dialog with a standard layout with slots for the heading, content, hero image, button group, etc. This corresponds to the previous `type="modal"` API.
* [FullscreenDialog](../Dialog.md#fullscreendialog) â a fullscreen or takeover modal, similar to a Dialog but with different slots and layout. This corresponds to the previous `type="fullscreen"` and `type="fullscreenTakeover"` APIs.
* [CustomDialog](../Dialog.md#customdialog) â a modal dialog with a completely custom layout. It can have default padding or go edge-to-edge. No built-in slots are provided, the layout is entirely up to you.
* [Popover](../Popover.md) â Popovers no longer support the previous dialog-style layout, which was rarely needed in recent apps. In addition, popover now has a reduced amount of padding by default, which was a common request.

In addition, several DialogTrigger props have moved to the above children:

* `type` is removed. Use one of the above components instead.
* `isKeyboardDismissDisabled` moved to Dialog, FullscreenDialog, and CustomDialog
* `isDismissable` was renamed to `isDismissible` (fixed spelling), and moved to Dialog and CustomDialog
* `hideArrow`, `offset`, `crossOffset`, `containerPadding`, `placement`, and `shouldFlip` moved to Popover

We've also continued to iterate on developer experience based on your feedback. Documentation on style macro usage with regards to
[colors](../style-macro.md#colors) and [typography](../style-macro.md#text) have been added to help clarify
these common use cases. Style macro properties like `width` and `height` now allow for arbitrary pixel size values, please see the [docs](../style-macro.md#dimensions)
for more information. Finally, documentation on [optimizing CSS bundling](../styling.md#css-optimization) have also been
added to help you generate a properly optimized output when using the bundler of your choice.

## New components

* [ActionButtonGroup](../ActionButtonGroup.md)
* [CloseButton](../Dialog.md#customdialog)
* [CustomDialog](../Dialog.md#customdialog)
* [FullscreenDialog](../Dialog.md#fullscreendialog)
* [Popover](../Popover.md)
* [ToggleButtonGroup](../ToggleButtonGroup.md)

## Updates

* [Accordion](../Accordion.md): Add support for adjacent sibling elements in header
* [ActionButton](../ActionButton.md): Add support for Avatars in ActionButtons
* [Dialog](../Dialog.md): See above for a summary of the changes to Dialog and Dialog adjacent components.
* [Disclosure](../Disclosure.md): Add support for adjacent sibling elements in header
* [DropZone](../DropZone.md): Add t-shirt sizing
* [Menu](../Menu.md): Add support for separate user defined selection modes per MenuSection
* [Meter](../Meter.md): Add label positioning support
* Update Spectrum Tokens to v53
* Allow arbitrary pixel sizes for style macro sizing properties (e.g. width, height)

## Codemods

* Support Dialog updates
* Support ActionGroup -> ActionButtonGroup/ToggleButtonGroup
* Support arbitrary pixel sizing for style macro sizing properties
* Update S1 to S2 icon mapping