-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix misalignment of copy failure retry CTA #4319
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bjester using line-height won't help in my opinion. I tried setting bottom padding to 2px and 5.5px. I'll show you the results. I can push the changes with whatever value looks fine to you. I'd prefer the second one personally. |
Changing the
The two bits of text should appear as if it's sitting on an imaginary baseline, with the underline underneath that baseline. The 2px option looks closest to that |
@bjester I have pushed the changes. Thanks for your help with everything : ) |
Thanks @KshitijThareja ! |
Hi @KshitijThareja is there a way for me to manually test and replicate this on hotfixes? |
Hi @pcenov! To replicate this on hotfixes, just raise a validation error inside the try block here: studio/contentcuration/contentcuration/viewsets/contentnode.py Lines 935 to 938 in 91dfec0
Now if you try to copy resources in a channel, you'll be able to replicate the Copy Failure error. |
Summary
Description of the change(s) you made
This PR aims to fix the misalignment of copy failure retry action which is triggered when the copy operation is unsuccessful in copying a node(s).
Manual verification steps performed
To generate copy error state on the frontend, I raised an exception from the backend copy function. The verification steps I performed:
Screenshots
Before:
After fixing the issue:
Does this introduce any tech-debt items?
No. It was just a simple frontend CSS fix.
References
Closes #4272
Comments
The CSS fix works fine for all devices.
Contributor's Checklist
PR process:
CHANGELOG
label been added to this PR. Note: items with this label will be added to the CHANGELOG at a later timedocs
label has been added if this introduces a change that needs to be updated in the user docs?requirements.txt
files also included in this PRStudio-specifc:
notranslate
class been added to elements that shouldn't be translated by Google Chrome's automatic translation feature (e.g. icons, user-generated text)pages
,components
, andlayouts
directories as described in the docsTesting:
Reviewer's Checklist
This section is for reviewers to fill out.
yarn
andpip
)