Skip to content

Panel with SegmentedButton: Collapsed Panel contains SegmentedButton with width 0 #500

@petejohnson84

Description

@petejohnson84

Describe the bug
A default collapsed Panel containing a SegmentedButton renders oddly. The ToggleButton text is all ellipsis and renders partially outside of the Panel. If the default collapsed is false, the behavior does not happen.

To Reproduce
Steps to reproduce the behavior:

  1. Use the create-react-app with @ui5/webcomponents-react template
  2. Add the following code to App.js
<Panel collapsed={true}>
    <SegmentedButton>
        <ToggleButton>Left</ToggleButton>
        <ToggleButton>Center</ToggleButton>
        <ToggleButton>Right</ToggleButton>
    </SegmentedButton>
</Panel>

Expected behavior
The SegmentedButton should render correctly despite the default Panel collapsed variable.

Screenshots
Screen Shot 2020-05-08 at 12 56 25 PM

UI5 Web Components for React Information
Operating System:
@ui5/webcomponents-react version: 0.9.4
Do you have a dependency to@ui5/webcomponents in your package.json? If yes, which version?: 1.0.0-rc.7

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions