Closed bomasap closed 1 month ago
Hi @bomasap
custom components that render multiple elements are currently not supported as actions
of the DynamicPageTitle
. You can find out more about this here.
The linked PR will outline this in our docs. For updates please subscribe to the corresponding feature request.
Describe the bug
There is an issue with the
DynamicPageTitle
component'sactions
property when using a custom actions component. The custom actions component, which includes two buttons, does not display a gap between the buttons when placed in theactions
property. However, placing the two buttons directly in the actions property does result in the correct gap between them.According to another related bug (https://github.com/SAP/ui5-webcomponents-react/issues/5863), this issue is mentioned in the context of a
slot
. However, the custom actions component does not have a slot in its props.Isolated Example
https://stackblitz.com/edit/github-zwueh7-t5uuzk?file=src%2FApp.tsx,src%2FCustomActions.tsx
Reproduction steps
1.Place the custom actions component in the actions property of the DynamicPageTitle component. Observe the lack of gap between the two buttons. https://stackblitz.com/edit/github-zwueh7-t5uuzk?file=src%2FApp.tsx,src%2FCustomActions.tsx
Expected Behaviour
When the custom actions component is placed in the
actions
property of theDynamicPageTitle
, there should be a gap between the buttons, similar to when the buttons are placed directly in the actions property.Screenshots or Videos
UI5 Web Components for React Version
1.28.0
UI5 Web Components Version
1.24.0
Browser
Chrome, Edge, Firefox, Safari
Operating System
No response
Additional Context
No response
Relevant log output
No response
Organization
No response
Declaration