-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: UI5 Web Components for React is no longer relying on `react-jss` internally, hence the dependency is now removed and the `react-jss` ThemeProvider is no longer rendered as part of our `ThemeProvider`. If you are relying on `react-jss` in your application, please make sure to render your own `react-jss` ThemeProvider. BREAKING CHANGE: The `useResponsiveContentPadding` has been removed. You can achieve the same look and feel by using the [responsive content padding from Common CSS](https://sap.github.io/ui5-webcomponents-react/main/?path=/docs/knowledge-base-common-css--docs#content-paddings).
- Loading branch information
1 parent
2da6d60
commit 5342836
Showing
22 changed files
with
110 additions
and
539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { Footer, TableOfContent } from '@sb/components'; | ||
import { Meta } from '@storybook/blocks'; | ||
import { Link, MessageStrip } from '@ui5/webcomponents-react'; | ||
|
||
<Meta title="Common CSS" /> | ||
|
||
# Using Common CSS in your application | ||
|
||
<TableOfContent /> | ||
|
||
We recommend using the [@sap-ui/common-css](https://www.npmjs.com/package/@sap-ui/common-css) package for applying common styling blocks based on SAP Fiori Design Guidelines. | ||
|
||
<MessageStrip | ||
hideCloseButton | ||
children={ | ||
<> | ||
This documentation is only showing a few samples which we consider to be useful for applications using UI5 Web | ||
Components for React. You can find the full documentation for SAP UI Common CSS{' '} | ||
<Link href="https://sap.github.io/fundamental-styles/?path=/docs/common-css-introduction--docs">here</Link>. | ||
</> | ||
} | ||
></MessageStrip> | ||
|
||
<br /> | ||
<br /> | ||
|
||
## Content Paddings | ||
|
||
[Full Documentation](https://sap.github.io/fundamental-styles/?path=/docs/common-css-content-paddings--docs) | ||
|
||
You can import the content paddings by adding the following import to your project: | ||
|
||
```ts | ||
import '@sap-ui/common-css/dist/sap-content-paddings.css'; | ||
``` | ||
|
||
### Responsive Content Paddings | ||
|
||
You can apply a dynamic content padding for your element by applying the following classes to your HTML: | ||
|
||
```html | ||
<div class="sap-container-type-inline-size"> | ||
<div class="sap-content-paddings-container">I will have a responsive content padding</div> | ||
</div> | ||
``` | ||
|
||
<Footer /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
packages/main/src/components/ThemeProvider/ThemeProvider.cy.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.