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
Tweak add tag button and the look of tags. #3530
Tweak add tag button and the look of tags. #3530
Conversation
@sturkel89, can you take a look at how this compares against dev in all three themes? This should just apply to the "add tag" controls on the record page. |
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.
I like the new version. The outlines are crisp, and the visual change on click is much clearer to the eye (especially in sandal and bootstrap3). Good work on these updates!
Slight styling issues that may or not be worth adjusting:
Bootstrap3 - padding around button
I kept the browser width constant for test vs. dev in each theme (although I may have varied browser width between theme changes). This makes it clear that in bootstrap3, there's more padding around the new buttons, so the text next to the button scrolls to a fourth line. Maybe it would be better to compromise on the size of that padding?
Sandal - spacing in Tags row
In sandal, I always notice that the text in the Tags row has a much wider spacing than the text in the other rows in record view. (This is true in test and dev.) Can this be adjusted?? I know it's out of scope for this PR.
@sturkel89 I tweaked the padding and margin a bit on narrow displays to make the text fit on three lnes. And fixed the sandal line height issue as well while at it. |
Thanks, @EreMaijala and @sturkel89. I noticed there were some minor merge conflicts, and I just fixed them so that if @sturkel89 approves after the next round of testing, this will be ready to merge as-is. |
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.
This latest update fixes the two problems I identified. Very happy to see normal spacing in the Tags row in Sandal! I'll approve this for merging, and make an note of something that you may or may not want to deal with in another PR or Jira ticket.
I now notice that Sandal has two modes for wrapping in this the Tags row, probably related to a setting having to do with the record options at the top of the page.
- At most browser widths, the text next to the Add Tag button scrolls to two lines (and the Cite this, Text this, etc. buttons are in one row).
- Then, as you narrow, at one point the text next to Add Tag jumps to four rows -- no in-between!
I think this is because the Save to List and Permanent Link buttons at the top scroll around together to a second row, rather than Permanent Link moving to a second row on its own.
(All of this behavior is somewhat different in the other themes, just to keep things interesting!)
@sturkel89 I believe the 4-line wrap happens because the column is so narrow, and the font is larger than in other themes. I suppose it might make sense to make the heading column a bit narrower since it tends to have a lot of empty space. Not sure if there are cases where the space is actually needed, though. |
btn-link
class that's meant for buttons and has unintended side-effects with Bootstrap 5.pull-right
class to the.tag-record
style becausepull-right
doesn't work the same in BS5.