-
Notifications
You must be signed in to change notification settings - Fork 392
docs(readme): add section for configuring css #12616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,9 +79,17 @@ If you want to start with your existing project, skip to [Install and configure | |
|
|
||
| Once the library is installed, use the specific setup instructions for that library to access the components it contains. These can be found in the readme for each [library](#patternfly-react-packages). | ||
|
|
||
| #### Configure PatternFly styling | ||
| PatternFly uses the [`@patternfly/react-styles` package](https://www.npmjs.com/package/@patternfly/react-styles) as a translation layer to reference the styles contained in the PatternFly HTML/CSS library. When developing with Patternfly React, include the following import at the base level of your application to pull in PatternFly's styling: | ||
|
|
||
| ``` | ||
| import '@patternfly/react-core/dist/styles/base.css'; | ||
| ``` | ||
|
|
||
| Importing css directly from the PatternFly HTML/CSS library while using PatternFly React may result in duplicated stylesheets in the browser as PatternFly React already pulls in styles internally via `@patternfly/react-styles`. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win Place the guidance in The PR objective requires this section in the 🧰 Tools🪛 markdownlint-cli2 (0.23.2)[warning] 85-85: Fenced code blocks should have a language specified (MD040, fenced-code-language) 🤖 Prompt for AI Agents
kmcfaul marked this conversation as resolved.
Outdated
|
||
|
|
||
| ### Contribution guidelines | ||
| All React contributors must first be [PatternFly community contributors](https://www.patternfly.org/get-started/contribute/contributing-to-patternfly). If you're already a PatternFly community contributor, check out the [React contribution guidelines](https://github.com/patternfly/patternfly-react/tree/main/CONTRIBUTING.md) to make React contributions. | ||
|
|
||
| ### License | ||
| PatternFly React is licensed under the [MIT License](https://github.com/patternfly/patternfly-react/tree/main/LICENSE). | ||
|
|
||
| PatternFly React is licensed under the [MIT License](https://github.com/patternfly/patternfly-react/tree/main/LICENSE). | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Specify the JavaScript code fence.
Use
```jsinstead of ` ````. This resolves markdownlint MD040 and enables correct renderer behavior.Proposed fix
🧰 Tools
🪛 markdownlint-cli2 (0.23.2)
[warning] 85-85: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🤖 Prompt for AI Agents
Source: Linters/SAST tools