Repository navigation
Use React button component for image control buttons - #1981
jamesmisson wants to merge 30 commits into
Conversation
β¦round for choice and image adjust dialogues
|
@jamesmisson is attempting to deploy a commit to the Universal Viewer Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
β¦ntrol button bg colour
demiankatz
left a comment
There was a problem hiding this comment.
Thanks, @jamesmisson! Since this builds on #1980, I'll review it more carefully after that one is merged (so I can see which changes here are unique). I did have one question based on a quick skim, though (see below):
| "$settings": "Settings", | ||
| "$twoPageView": "Two page view", | ||
| "$goHome": "Go Home", | ||
| "$goHome": "Fit Image", |
There was a problem hiding this comment.
Do we need to seek translations for this new label for all the other languages?
There was a problem hiding this comment.
Thanks @demiankatz , I've asked on the translations Slack channel.
LanieOkorodudu
left a comment
There was a problem hiding this comment.
Thanks @jamesmisson, The tooltip looks really nice! Just a small suggestion, could we perhaps increase the font size to 12px or 13px? It might make it a little easier to read, especially for users with visual impairments.
Pull request description
Summary of changes
Builds on top of #1980 so that should be merged first.
This implements the new React button component for the image control buttons, now contained in a parent React component (
ImageControls.tsx).The dialogues for the choice menu and image adjust feature still expect the original jquery elements to return focus to when they've closed, so I've added a workaround to keep that with the getters in the center panel. Ultimately I think we need an image control menu component that gets rendered within the ImageControls component to keep these tidy - something for if/when we redesign those control menus.
Related issues
#1957
Contributor checklist
Accessibility & internationalisation
Compatibility & interoperability
Code quality & testing
Configuration & documentation
Additional notes for reviewers: