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
BREAKING CHANGE: The `DynamicPage` component has been replaced with the
`ui5-dynamic-page` UI5 Web Component, please visit our [Migration
Guide](https://sap.github.io/ui5-webcomponents-react/main/?path=/docs/migration-guide--docs)
for more details.
BREAKING CHANGE: The `DynamicPageHeader` component has been replaced
with the `ui5-dynamic-page-header` UI5 Web Component, please visit our
[Migration
Guide](https://sap.github.io/ui5-webcomponents-react/main/?path=/docs/migration-guide--docs)
for more details.
BREAKING CHANGE: The `DynamicPageTitle` component has been replaced with
the `ui5-dynamic-page-title` UI5 Web Component, please visit our
[Migration
Guide](https://sap.github.io/ui5-webcomponents-react/main/?path=/docs/migration-guide--docs)
for more details.
BREAKING CHANGE: __ObjectPage:__ `headerTitle` now only accepts the
`ObjectPageTitle` component instead of the `DynamicPageTitle`.
BREAKING CHANGE: __ObjectPage:__ `headerContent` now only accepts the
`ObjectPageHeader` component instead of the `DynamicPageTitle`.
BREAKING CHANGE: __ObjectPage:__ `a11yConfig.dynamicPageAnchorBar` has
been renamed to `a11yConfig.objectPageAnchorBar`
---------
Co-authored-by: Marcus Notheis <[email protected]>
-`preserveHeaderStateOnScroll`: You should be able to achieve the same behavior with the `headerPinned` prop.
136
+
-`showHideHeaderButton`: Hiding the expand/collapse button is not supported by design anymore.
137
+
138
+
### DynamicPageHeader
139
+
140
+
The `DynamicPageHeader` component has been replaced with the `ui5-dynamic-page-header` web component.
141
+
Since the `ObjectPage` isn't compatible with the `DynamicPageHeader` web component, please use the `ObjectPageHeader` component in the `ObjectPage` instead.
142
+
143
+
### DynamicPageTitle
144
+
145
+
The `DynamicPageTitle` component has been replaced with the `ui5-dynamic-page-title` web component. This comes with a few breaking changes listed below.
146
+
Since the `ObjectPage` isn't compatible with the `DynamicPageTitle` web component, please use the `ObjectPageTitle` component in the `ObjectPage` instead.
147
+
148
+
#### Replaced Props
149
+
150
+
-`actions` has been replaced by `actionsBar` and is now a `slot`. Instead of passing actions (e.g. `Buttons`) directly, it is now recommended to use the `Toolbar` component in order to preserve the intended design.
151
+
-`navigationActions` has been replaced by `navigationBar` and is now a `slot`. Instead of passing actions (e.g. `Buttons`) directly, it is now recommended to use the `Toolbar` component in order to preserve the intended design.
152
+
-`subHeader` has been renamed to `subheading` and is now a slot.
153
+
-`header` has been renamed to `heading` and is now a `slot`. The `font-size` isn't automatically adjusted anymore, so to keep the intended design you can leverage the new `snappedHeading` prop and apply the corresponding CSS Variables yourself. (see example below)
-`showSubHeaderRight` is not defined by the global design guidelines and is therefore not available with the new web component.
169
+
-`actionsToolbarProps` is not necessary anymore, as you now can pass a `Toolbar` yourself.
170
+
-`navigationActionsToolbarProps` is not necessary anymore, as you now can pass a `Toolbar` yourself.
171
+
-`expandedContent` is now part of the `subheading` prop, so if you've rendered a `MessageStrip` below the `subHeader` for example, you can now render the subheading and additional content both in the same slot.
172
+
-`snappedContent` is now part of the `snappedSubheading` prop, so if you've rendered a `MessageStrip` below the `subHeader` for example, you can now render the subheading and additional content both in the same slot.
173
+
174
+
Example for combined `subHeader` and `expanded/snappedContent` in `subheading`/`snappedSubheading`:
175
+
176
+
```jsx
177
+
<DynamicPageTitle
178
+
subheading={
179
+
<>
180
+
<Label>Subheader</Label>
181
+
<MessageStrip>Information (only visible if header content is expanded)</MessageStrip>
182
+
</>
183
+
}
184
+
snappedSubheading={
185
+
<>
186
+
<Label>Snapped Subheader</Label>
187
+
<MessageStrip>Information (only visible if header content is collapsed (snapped))</MessageStrip>
188
+
</>
189
+
}
190
+
/>
191
+
```
192
+
79
193
### Form
80
194
81
195
The `Form` component has been replaced with the `ui5-form` Web Component.
@@ -135,4 +249,18 @@ function MyComponent() {
135
249
}
136
250
```
137
251
252
+
### ObjectPage
253
+
254
+
The newly introduced `DynamicPage` web component comes with its own `DynamicPageHeader` and `DynamicPageTitle` components, which are unfortunately incompatible with our `ObjectPage` implementation.
255
+
Please use the following components instead:
256
+
257
+
-`headerContent` now only accepts the `ObjectPageHeader` component.
258
+
-`headerTitle` now only accepts the `ObjectPageTitle` component.
259
+
260
+
**Renamed props:**
261
+
262
+
-`a11yConfig.dynamicPageAnchorBar` has been renamed to `a11yConfig.objectPageAnchorBar`
263
+
264
+
Also, the namings of internal `data-component-name` attributes have been adjusted accordingly. E.g. `data-component-name="DynamicPageTitleSubHeader"` has been renamed to `data-component-name="ObjectPageTitleSubHeader"`
0 commit comments