Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,16 @@ governing permissions and limitations under the License.
.spectrum-Field.spectrum-Dropdown-fieldWrapper--quiet {
display: inline-flex;
flex-direction: column;
inline-size: auto;
inline-size: 100%;
max-width: max-content;

.spectrum-Dropdown--quiet {
inline-size: auto;
min-inline-size: var(--spectrum-dropdown-quiet-min-width);

.spectrum-Dropdown-trigger {
inline-size: auto;
inline-size: 100%;
max-width: max-content;
}
}

Expand Down
30 changes: 30 additions & 0 deletions packages/@react-spectrum/picker/stories/Picker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,36 @@ export const Quiet: PickerStory = {
<Item key="always">Always</Item>
</Picker>
</View>
<hr />
<View
width={200}>
<h4>Quiet picker with label and fixed width (200px)</h4>
<Picker
isQuiet
label="Choose frequency"
defaultSelectedKey="sometimes">
<Item key="rarely">Rarely</Item>
<Item key="sometimes">
This text is very long and will overflow the container
</Item>
<Item key="always">Always</Item>
</Picker>
</View>
<hr />
<View
width={600}>
<h4>Quiet picker with label and fixed width (600px)</h4>
<Picker
isQuiet
label="Choose frequency"
defaultSelectedKey="sometimes">
<Item key="rarely">Rarely</Item>
<Item key="sometimes">
This text is very long the picker should expand to fit
</Item>
<Item key="always">Always</Item>
</Picker>
</View>
</View>
)
};
Expand Down