-
Notifications
You must be signed in to change notification settings - Fork 438
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
Improve style of tag input type in submission form #2490
base: dspace-7_x
Are you sure you want to change the base?
Conversation
Improve the style of tags in the submission interface by adding a slight rounded border like other input types.
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.
thanks @alanorth for this PR.
I taken a look and in my opinion is not the best solution in term of look and feel. On the other hand i can understand the reasons that led to this PR. So i'd propose a similar solution where the border are visible only on mouse hover. something linke the following
DSpace.Repository.__.Edit.Submission.mp4
@tdonohue @artlowel I'd appreciate you opinion on this topic
Thanks for the review @atarix83. The main problem I want to solve is to make the field more obvious. We have hundreds of people submitting items to our repository and they are confused with this tag input field because it is not visually distinguished until it is active. My approach was to use the same style as other input fields, though the first one is ugly because of the spacing of the placeholder text. |
@alanorth and @atarix83 : I agree with the idea behind this PR, but I also agree that "as-is" this PR needs a bit more work. I'm OK with having the box appear immediately (the same as a text input field, like "Publisher" or "Author"), but the style of the "Subject Keywords" field should also match those other fields. Namely...
So, I agree that this "Subject Keywords" text field should appear similar to other fields, but I feel this current PR needs more work before it can be merged. |
Description
Improve the style of the
tag
input type in the submission form by adding a subtle rounded border similar to other input fields. Without some style to differentiate the input field it is not clear where the text field is unless you are an experienced user who already knows.Instructions for Reviewers
Please add a more detailed description of the changes made by your PR. At a minimum, providing a bulleted list of changes in your PR is helpful to reviewers.
List of changes in this PR:
border
androunded
Bootstrap border helper classes on tag input elementsVideo before:
tag-input-before.mp4
Video after:
tag-input-after.mp4
Include guidance for how to test or review your PR. This may include: steps to reproduce a bug, screenshots or description of a new feature, or reasons behind specific changes.
Test the DSpace 7 submission form with a
tag
input type, for example the "Subject Keywords" field in the default submission form. Make sure that the submission form works as expected and that the only change is the new style.Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.