[UI5 Bar]: Button inside slotEnd being cut off #10101
Labels
bug
This issue is a bug in the code
enhancement
New feature or request
feature request
SAP UDEx
TOPIC B
Bug Description
When long text heading (as startContent slot) and button (as endContent slot) are added to ui5-bar, on smaller devices button is cut off. There is no enough space to fully display button and wrapper width is not configurable.
Affected Component
ui5-bar, udex-modal
Expected Behaviour
Could we have shadow parts for:
.ui5-bar-startcontent-container
,.ui5-bar-midcontent-container
,.ui5-bar-endcontent-container
element in ui5 bar, so min-width can be controlled by users?Isolated Example
https://sap.github.io/ui5-webcomponents/play/#eyJpbmRleC5odG1sIjp7Im5hbWUiOiJpbmRleC5odG1sIiwiY29udGVudCI6IjwhLS0gcGxheWdyb3VuZC1mb2xkIC0tPlxuPCFET0NUWVBFIGh0bWw-XG48aHRtbCBsYW5nPVwiZW5cIj5cblxuXG48aGVhZD5cbiAgICBcbiAgICA8c3R5bGU-XG4gICAgICAqOm5vdCg6ZGVmaW5lZCkge1xuICAgICAgICBkaXNwbGF5OiBub25lO1xuICAgICAgfVxuICAgIDwvc3R5bGU-XG5cbiAgICBcbiAgICA8c3R5bGU-XG4gICAgICAqOm5vdCg6ZGVmaW5lZCkge1xuICAgICAgICBkaXNwbGF5OiBub25lO1xuICAgICAgfVxuICAgICAgaDMge1xuICAgICAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICAgICAgdGV4dC13cmFwOiBub3dyYXA7XG4gICAgICAgIGZvbnQtZmFtaWx5OiB2YXIoLS1zYXBGb250RmFtaWx5KTtcbiAgICAgIH1cbiAgICA8L3N0eWxlPlxuXG4gICAgPG1ldGEgY2hhcnNldD1cIlVURi04XCI-XG4gICAgPG1ldGEgbmFtZT1cInZpZXdwb3J0XCIgY29udGVudD1cIndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xLjBcIj5cbiAgICA8dGl0bGU-U2FtcGxlPC90aXRsZT5cbjwvaGVhZ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rpc3QvYWN0aW9uLXNldHRpbmdzLmpzXCJcbiJ9fQ
Steps to Reproduce
Log Output, Stack Trace or Screenshots
Issue us cause by setting 'min-width' for smaller ui5-bar resolution.
.ui5-bar-root.ui5-bar-root-shrinked .ui5-bar-content-container
.Button placed inside do not have enough space to be displayed correctly.
Setting width to slots wrapper could fix that problem:
Priority
None
UI5 Web Components Version
1.24.8, 2.3.0
Browser
Chrome
Operating System
MacOS , Windows
Additional Context
UDEx reported ticket: https://github.tools.sap/sapudex/digital-design-system/issues/1188
UI5 Bar component is used inside UDEx Modal component header (extension on UI5 Dialog).
Organization
SAP / UDEx components team
Declaration
The text was updated successfully, but these errors were encountered: