Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into refactor/filter-group…
Browse files Browse the repository at this point in the history
…-item
  • Loading branch information
MarcusNotheis committed Jul 5, 2024
2 parents 748b8a5 + 10e50a2 commit 8926a08
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
8 changes: 8 additions & 0 deletions docs/MigrationGuide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,14 @@ function MyComponent() {

```
### ObjectPageSection
The prop `titleText` is now required and the default value `true` has been removed for the `titleTextUppercase` prop to comply with the updated Fiori design guidelines.
### ObjectPageSubSection
The prop `titleText` is now required.
## Enum Changes
For a better alignment with the UI5 Web Components, the following enums have been renamed:
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/components/ObjectPage/ObjectPage.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ describe('ObjectPage', () => {
};
cy.mount(<TestComp />);

cy.findByText('Lorem ipsum dolor sit amet').should('have.css', 'text-transform', 'uppercase');
cy.findByText('Lorem ipsum dolor sit amet').should('have.css', 'text-transform', 'none');
cy.findByText('Etiam pellentesque').should('have.css', 'text-transform', 'none');

cy.findByText('toggle uppercase').click();
Expand Down
8 changes: 3 additions & 5 deletions packages/main/src/components/ObjectPageSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ export interface ObjectPageSectionPropTypes extends CommonProps {
/**
* Defines the title of the `ObjectPageSection`.
*
* @default ''
*/
titleText?: string;
titleText: string;
/**
* Defines whether the title is always displayed in uppercase.
*
* @default true
*/
titleTextUppercase?: boolean;
/**
Expand Down Expand Up @@ -61,10 +59,10 @@ export interface ObjectPageSectionPropTypes extends CommonProps {
*/
const ObjectPageSection = forwardRef<HTMLElement, ObjectPageSectionPropTypes>((props, ref) => {
const {
titleText = '',
titleText,
id,
children,
titleTextUppercase = true,
titleTextUppercase,
className,
style,
hideTitleText,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface ObjectPageSubSectionPropTypes extends CommonProps {
/**
* Defines the title of the `ObjectPageSubSection`.
*/
titleText?: string;
titleText: string;
/**
* Actions available for this subsection.
*
Expand Down

0 comments on commit 8926a08

Please sign in to comment.