-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(RTL): added right-to-left page demo (#9694)
- Loading branch information
Showing
5 changed files
with
694 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
id: Right-to-left | ||
section: patterns | ||
--- | ||
|
||
import translationsEn from "./examples/translations.en.json"; | ||
import translationsHe from "./examples/translations.he.json"; | ||
import AlignRightIcon from '@patternfly/react-icons/dist/esm/icons/align-right-icon'; | ||
import ToolsIcon from '@patternfly/react-icons/dist/esm/icons/tools-icon'; | ||
import ClockIcon from '@patternfly/react-icons/dist/esm/icons/clock-icon'; | ||
import WalkingIcon from '@patternfly/react-icons/dist/esm/icons/walking-icon'; | ||
import pfLogo from '@patternfly/react-core/src/demos/assets/pf-logo.svg'; | ||
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon'; | ||
import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon'; | ||
import QuestionCircleIcon from '@patternfly/react-icons/dist/esm/icons/question-circle-icon'; | ||
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon'; | ||
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon'; | ||
import HandPaperIcon from '@patternfly/react-icons/dist/esm/icons/hand-paper-icon'; | ||
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg'; | ||
|
||
import './examples/PaginatedTable.css'; | ||
|
||
## Demos | ||
|
||
This demonstrates how the UI adapts to the writing mode of the page. | ||
|
||
### Paginated table | ||
|
||
```js file="./examples/PaginatedTable.jsx" isFullscreen | ||
|
||
``` |
7 changes: 7 additions & 0 deletions
7
packages/react-core/src/demos/RTL/examples/PaginatedTable.css
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,7 @@ | ||
.brand-language { | ||
font-weight: var(--pf-v5-global--FontWeight--bold); | ||
font-family: var(--pf-v5-global--FontFamily--heading); | ||
font-size: var(--pf-v5-global--FontSize--xl); | ||
align-self: center; | ||
margin-inline-start: var(--pf-v5-global--spacer--md); | ||
} |
Oops, something went wrong.