patternfly / patternfly/patternfly-react
Table - add docs for using with container queries
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 862
- Forks
- 392
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 9
Description
A short version of it is in core here - https://www.patternfly.org/components/table/html#responsive-layout-modifier-usage
IMO I'd like to at least update the wording so that "container queries" or "container query" are on the page somewhere in case someone searches for it. From the core docs, instead of this
Note: If a wrapping element creates an inline-size or size container with the container name pf-v6-contain-table, the breakpoints will apply to the container's width.
I'd advocate we add another h3 under the grid classes table with "Container queries" and some text like
To base the table's responsive classes on a container's width rather than the viewport, apply a CSS container named pf-v6-contain-table to the target ancestor element. For example:
.my-table-wrapper {
container: pf-v6-contain-table / inline-size;
}
Jira Issue: PF-4418
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.
Research direction
Read the existing Table documentation and compare it with the core Table responsive-layout modifier usage linked in the issue. Locate the grid classes section, add searchable container-query guidance and the pf-v6-contain-table CSS example, then verify the rendered page includes the new heading and explanation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 78/100