patternfly / patternfly/patternfly-org
Images are presented inconsistently in docs
@edonehoo is already working on this.
Since Jan 15, 2026.
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 147
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 2
Description
Curious if we could normalize any of these. I'll also say that on top of these, there are a lot of images in the docs that are not within any kind of class/wrapper - so those are either left-aligned with the content if they're less than the width of the content wrapper, or they consume 100% of the content width with no max-width.
.ws-docs-content-img
-
will only grow up to
700px -
centers itself horizontally
-
centers its child horizontally (if the image inside is less than
700px) -
Button docs use this with a bunch of varied image sizes - https://www.patternfly.org/components/button/design-guidelines
.ws-image
-
centers its child horizontally
-
same as above but will grow to 100% of the available width instead of a max of 700px
.ws-images
-
centers itself horizontally
-
has a max-width of
600px -
Same as the first one except 600px instead of 700px and it will not center its children, so if an image less than 600px wide is passed, it will be left aligned within the container.
Jira Issue: PF-2788
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.