patternfly / patternfly/react-data-view
DataViewToolbar: Pagination misaligned from rest of toolbar
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
Hey PatternFly team!😁
I was recently working with the DataViewToolbar component attempting to align the toolbar with the pagination in the same row. Currently, when passing a pagination prop to the component the pagination is not aligned in the same row as the rest of the toolbar. Example (and this same behavior is displayed in the examples in the component's docs):
PatternFly's toolbar design guidelines recommend these be aligned in the same row.
After some investigation, I found the pagination is wrapped in a div that uses flex with a set width of 100%. This causes the pagination to render in its own row distinct from the rest of the toolbar. Link to code referenced
Please implement a fix that aligns the pagination in the same row as the rest of the toolbar. Thank you!😄
Jira Issue: PF-4529
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
Start in packages/module/src/DataViewToolbar/DataViewToolbar.tsx at the pagination wrapper referenced in the issue, then compare the component behavior with the DataViewToolbar documentation examples. Confirm the fix by checking that pagination renders in the same row as the other toolbar content, matching the toolbar design guidelines.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100