fix(pagination): simplify to single input with wrapped form and mobile submit#2861
fix(pagination): simplify to single input with wrapped form and mobile submit#2861zeroedin wants to merge 13 commits intostaging/eeveefrom
Conversation
🦋 Changeset detectedLatest commit: 61d0094 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for red-hat-design-system ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Size Change: +594 B (+0.22%) Total Size: 266 kB
ℹ️ View Unchanged
|
Documentation Health
|
| Category | Score | |
|---|---|---|
| Element description | 25/25 | ✅ |
| Attribute documentation | 20/20 | ✅ |
| Slot documentation | 13/15 | ✅ |
| CSS documentation | 10/15 | |
| Event documentation | 15/15 | ✅ |
| Demos | 10/10 | ✅ |
Recommendations:
- rh-pagination: reference design tokens or theme considerations in CSS descriptions (CSS documentation, +4 pts)
- rh-pagination: mention accessibility considerations for slot content (Slot documentation, +2 pts)
- rh-pagination: add descriptions to all CSS custom properties (CSS documentation, +1 pts)
|
Noticed that the page number field always resets to 1 (and not the current page value) after submittal. This differs from production. pagination-on-submit.mp4 |
|
@hellogreg PTAL |
Assisted-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@coreyvickery please take a look and let us know if this needs any changes |
There was a problem hiding this comment.
@zeroedin Small things.
- Greg posted a video of something I see too, but it works as normal after a few tries
- Number boxes seem to be a tad bigger than the control boxes
- Input field with page number has no border (on landing it doesn't, but it does when I navigate to a different page)
- Controls (except for page input field tiny up/down arrows) don't work (not sure if that's a bug or not for this particular PR
- When the page number stuff is below the controls, reduce the padding to
--rh-space-xl - Mobile behavior and location of page number stuff looks good
hellogreg
left a comment
There was a problem hiding this comment.
Controls (except for page input field tiny up/down arrows) don't work (not sure if that's a bug or not for this particular PR
I found the same thing as Corey. All the arrow controls are disabled in all browsers I checked.
oddly enough they work in the dev server. Taking a look at this. Update: was an SSR issue, fixed in the 68246a5 and 984d304 below |
hellogreg
left a comment
There was a problem hiding this comment.
One thing I've noticed in Firefox (at least Mac Firefox) is that clicking the up/down incrementer/decrementer does not bring focus to the number input. So, you can't increment/decrement and just press return. You have to increment/decrement, then click in the input, and then press return.
Not sure if this is a Firefox thing or an us thing.
Was definitely a firefox thing, added code that now forces focus back on the input after the spinner is clicked. |
There was a problem hiding this comment.
Tested with mouse, keyboard, and screen reader:
- Mac Safari (VoiceOver)
- Mac Chrome (VoiceOver)
- Mac Firefox (VoiceOver)
- Windows Edge (Narrator)
- Windows Chrome (JAWS)
- Windows Firefox (NVDA)
Tested with touchscreen, onscreen keyboard, and screen reader:
- iOS Safari (VoiceOver)
- Android Chrome (TalkBack)
LGTM
What I did
Replaces the closed branch #2846 to tidy up the changes.
Testing Instructions
Notes to Reviewers
@coreyvickery If additional design spec changes are necessary let me know. I know there was an outstanding question about how this moves forward with the unified theme by @markcaron.
@hellogreg when you have a moment give this a once over again in screen readers, not much if anything should have changed from the previous review in #2846 but just to be certain I didn't break anything in pulling those changes here.