Repository navigation
Use React button component for image control buttons - #1981
Conversation
|
@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.
|
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):
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.
|
Thanks @demiankatz and @LanieOkorodudu . I've added the other translations for 'fit screen'. We will consider the text size when we think about the tooltip styling properly here #1975 |
demiankatz
left a comment
There was a problem hiding this comment.
Could you please merge the UI branch back into this PR so that the redundant changes from #1980 are eliminated and the remaining changes are easier to review? Once that's done, I'll be happy to take a more careful look at this.
β¦round for choice and image adjust dialogues
β¦ntrol button bg colour
5079a21 to
36870b0
Compare
demiankatz
left a comment
There was a problem hiding this comment.
Thanks, @jamesmisson -- the new approach definitely seems more elegant and readable than the old. The stopgap bridge to jQuery is reasonable until it can be fully eliminated. :-)
|
I meant to approve rather than request changes, but I see there are conflicts that need to be resolved, so I guess changes are needed after all! Once you've had a chance to sort that out, let me know and I'll be happy to approve again. (This conflict was probably introduced by the recent merge from dev to UI). |
|
Thanks @demiankatz , merging UI seems to have resolved those conflicts. |
demiankatz
left a comment
There was a problem hiding this comment.
Thanks, @jamesmisson, looks good to me now!
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: