-
Notifications
You must be signed in to change notification settings - Fork 40
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
Basis: Needs styling on Node links like "Read more" and "Comments" #2797
Comments
The PR was simple enough: backdrop/backdrop#4122 The implications of it, on the other hand, might be trickier to address... |
I find the comma separator in "Read more, 1 comment, Add comment" rather confusing. The commas make them seem more semantically related than they are (not to mention that "Add" should not be capitalized after a comma, but this is not this PR's fault). Specifically "Read more, 1 comment" makes it seem like the Read more is somehow related to comments, but it's not. |
For parallelness of construction, grammar, and punctuation, should it be Read more; see 1 comment; add comment ? |
I added another PR that fixes the capitalization of "Add" in addition to the CSS change of the existing PR. There's still the question of whether inline links should be delimited with something "stronger" than commas (like semicolons, in my comment just above). Even though semicolons are more grammatical in this example, since inline links are used in a lot of places, it's not clear that they should be replaced everywhere. If it's a good idea for here, then maybe should we support another CSS class that replaces the commas with semicolons in specific locations? |
Meanwhile, tests need to be updated for this PR (to check for consistent capitalization). |
I agree, commas aren't the best option here, but I don't like semicolons either. In my opinion, both are misleading, suggesting that inline links are part of a grammatical sentence. I see them rather as independent elements. To make this more clear, they could be separated by an element which is normally not used grammatically (not as punctuation in the strict sense), and to keep the "Add" capitalized. Ideas: Slash: Pipe: Middot: Spacing (CSS margin): My favorite: middot, or spacing |
Commas are used for lists, but Read more, 1 comment, Add comment is not a list; it could be a list, if it listed actions to do on comments. I prefer middots as separators; spacing is my second choice. |
Interesting! I guess, that was the reason for @bugfolder's addition of a verb ("see comment") here: #2797 (comment) |
Middot is my favorite, too, and a nice thing about not using sentence punctuation is then capitalizing each element (current behavior) makes grammatical sense.
Yes, that way they're all imperative sentences. |
I modified the PR to go back to always capitalizing and use heavy dots for delimiters (which seemed better balanced to me): Using diferent delimiters for inline links seems to makes sense here, but what about generally? I did a search in core for
As for changing |
I'd say it makes generally sense. It would be good to check with some examples, but I don't have the time at the moment. Re changing |
I think things like different delimiters are a matter of user taste or styling rules, so it should be configurable just like breadcrumbs delimiters in some themes. |
Here's an example using And in Basis, with the dot delimiters, it looks like this: I don't think it needs the dots here, but they don't hurt. (Actually, I'd prefer that the "Operations" render as dropbuttons, as is done in so many other places for multiple operations, but that would be a different issue.) |
For the usage in |
For the usage in |
@bugfolder Thanks for the examples! Looks like your statement about one of them (dots not needed, but they don't hurt) is valid for most places. However, with different ideas like dropbuttons under consideration, I'm not sure if it's worth the effort to change all the places now. |
If we change the CSS that affects the read more/comments display, it will automatically affect all the other places, so no additional effort is needed to change those. I think the reason for checking the other places was to make sure that this change didn't adversely affect other places. (And thus far, I don't think it does.) I'd suggest we go ahead and make the CSS change to dots. It will improve the display of links for read more/comments, won't hurt anywhere else. And then as for the other things discussed:
How's that sound? |
Hm, looks I was a bit slow and the PR is already updated: Personally I don't like the pipes, too obtrusive, and I like the dots much better. Re consistency, the Views UI is a different thing, and it wasn't revised for a long time. We can follow its pattern, but in my opinion we don't have to. |
I guess I don't have a strong opinion myself (though consistency, however tenuous, won the day for me here). Since we clearly have a difference of opinion, how shall we settle this? (Perhaps our designer, @dariusgarza, could chime in?) |
Thanks @bugfolder, and thanks for all the work on this. In a way, I have a strong opinion, but it's also a personal preference, and I don't want to derail the issue. The pipe symbol is also fine for me. |
I find the pipes in the last screenshot fine too. I guess it may be because they seem like the borders of table cells. English does not use middle dots as punctuation anymore, but some languages use them. This could be a reason for avoiding middle dots to separate links. |
Funny! When we introduced middots in #4218, it was a good choice because they didn't follow existing patterns ;-) |
Seems like enough time and feedback has elapsed to to remove the "needs feedback." Looks like everyone thus far either prefers pipes or is at least OK with pipes, so I'll suggest we move on to the next phase of testing & code review. (Or express newly strong opposition, as the case may be.) |
I'm good with the middots or pipes. My concern is whether or not any changes to this might break websites that have already sub-themed basis to fix this problem in their own manner? |
I brought this issue to the developer meeting today to ask if we thought that this was backward compatible. The general consensus was, that based upon other decisions we've been making, this would not be considered backward compatible at this time. So, I think the official status of this issue would be on hold until we come up with a way to make backward compatible css changes. See: Supplemental CSS Selectors (or one of the other ideas out there). #4782 #4167 - Decide on best way to make improvements to the CSS for core without breaking existing sites |
We now have the ability to fix this in Basis. @bugfolder are you able to rebase the PR? We have until Jan 15th to get this into the next release. |
I posted a comment in Zulip asking about whether we can/should use logical properties instead of hard-coding RTL separately, going forward. |
Here's the corresponding logical properties issue for Backdrop core: #6657 Based on the Zulip discussion, making the switch to logical properties in core may take a while; I suggest that it need not hold up current PRs that contain LTR/RTL CSS (such as this one), so I'll suggest/request continued review/testing of the current PR. |
Agreed. |
It seems that this issue was blocked by the backwards compatibility issue. So, now it needs the |
@stpaultim, can you explain further, or link to where in the docs this class is explained? (I'm not seeing it on the docs site, except in test code.) EDIT: OK, it's here: #4782 (Off-topic, but it would seem some discussion of update classes could benefit https://docs.backdropcms.org/css-standards.) |
@bugfolder - You are correct, that we probably need some documentation for contributors on how to use the new CSS classes. I made a note of that here: backdrop-ops/docs.backdropcms.org#244 I'm waiting for feedback on the documentation that I already created. Sorry, I had intended to provide some suggestions for you, but didn't get to it. |
I like the pipes. Going to mark this WFM. It's been discussed a great deal already. I also marked this as a candidate for the Bug Fix Milestone. Does someone want to add it to the Milestone? |
Describe your issue or idea
The styling on the node links could use some work in Basis. Right now they stack on top of each other, rather than displaying one after the other:
Steps to reproduce (if reporting a bug)
Recommended solution
Remove the
display: block
style on.links.inline .node-readmore
inbasis/css/component/small-text-components.css
Status
Blocked until we find a better way to make backward compatible CSS Changes.
#4167
The text was updated successfully, but these errors were encountered: