You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1230,12 +1226,14 @@ A [Button](Button.html) can be targeted with the `.react-aria-Button` CSS select
1230
1226
1231
1227
### Popover
1232
1228
1233
-
The [Popover](Popover.html) component can be targeted with the `.react-aria-Popover` CSS selector, or by overriding with a custom `className`. Note that it renders in a [React Portal](https://reactjs.org/docs/portals.html), so it will not appear as a descendant of the ComboBox in the DOM.
1229
+
The [Popover](Popover.html) component can be targeted with the `.react-aria-Popover` CSS selector, or by overriding with a custom `className`. Note that it renders in a [React Portal](https://reactjs.org/docs/portals.html), so it will not appear as a descendant of the ComboBox in the DOM. It supports the following states and render props:
The`--trigger-width` CSS custom property will be set on the popover, which you can use to make the popover match the width of the combobox.
1233
+
Within a ComboBox, the popover will have the `data-trigger="ComboBox"` attribute, which can be used to define combobox-specific styles. In addition, the`--trigger-width` CSS custom property will be set on the popover, which you can use to make the popover match the width of the combobox.
Within a DateRangePicker, the popover will have the `data-trigger="DateRangePicker"` attribute, which can be used to define date range picker-specific styles.
@@ -994,12 +990,14 @@ A `SelectValue` can be targed with the `.react-aria-SelectValue` CSS selector, o
994
990
995
991
### Popover
996
992
997
-
The [Popover](Popover.html) component can be targeted with the `.react-aria-Popover` CSS selector, or by overriding with a custom `className`. Note that it renders in a [React Portal](https://reactjs.org/docs/portals.html), so it will not appear as a descendant of the Select in the DOM.
993
+
The [Popover](Popover.html) component can be targeted with the `.react-aria-Popover` CSS selector, or by overriding with a custom `className`. Note that it renders in a [React Portal](https://reactjs.org/docs/portals.html), so it will not appear as a descendant of the Select in the DOM. It supports the following states and render props:
The`--trigger-width` CSS custom property will be set on the popover, which you can use to make the popover match the width of the select button.
997
+
Within a Select, the popover will have the `data-trigger="Select"` attribute, which can be used to define select-specific styles. In addition, the`--trigger-width` CSS custom property will be set on the popover, which you can use to make the popover match the width of the select button.
0 commit comments