-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Admin: Display buttons text #8086
Conversation
agriffard
commented
Dec 19, 2020
•
edited
Loading
edited
Text on all screen sizes (IMHO) Moving to just icons was not a great idea. It's broken the look and feel of 2 sites (for me, that I know of), where I need to render extra buttons in the actions zone. And the extra buttons don't suit having just an icon - they need a textual description of what they do, as they are quite custom. |
Dean from UI/UX perspective using icons is a good idea especially in the large screens, to save some space, the content items page for instance was trouble ;) coz it have tons of buttons, now it got better looking |
What is it with this "ta-" prefix that we use it? If you want people to be able to customize the entire button based on a style then you should add the class on the .ta-action-button > span {
display: none;
}
.ta-action-button > svg {
display: none;
} Would hide both the icon and it's text/title. |
Prefix |
Refresh the page for my previous edited comment. |
Ok @jptissot will be mad at me. We had this discussion before. And we don't even need the |
So what: Do you want |
Repeat the same pattern for the others. Then the specific css selector will be : .btn.localizations > span {
display: none;
}
.btn.localizations > svg {
display: none;
} If they want to remove text from all buttons they can still do .btn > span {
display: none;
}
/* or in a specific zone with a wrapper */
.wrapper {
.btn > span {
display: none;
}
} |
Now, you will say. But I can't disable them all at once just for these content list buttons. Then, we need a wrapper class on the actual Content List page that says. Here, I'm on the content list page ; disable the icons. Here, I'm on the tenant list page ; disable the button texts. This class could be added on the |
So looking at these html list elements and we are not consistent. Which is a remaining task to do. I don't think this PR should cover this part. |
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.
Showing text inside some buttons doesn't make sense compare to others |
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.
Approving, I think we've got to a better place where we are meeting more peoples needs.
I still feel like we've broken the Tags and Meta zones a bit, but will have to see it in action again to understand.
Good to merge later to wait for other opinions /cc @Skrypt
I see the UI is inconsistent, if we want to diplay text with icons, we shall do it for all buttons, again regarding the colors it should be choosing properly with the respect of theme color scheme |
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.
The returning colors are the colors that existed previously.
Most of this pr is about returning behaviour that broke existing sites.
TODO On another PR. Fix the zone breaking changes
Hey guys, I said this over on the tenants UI changes - "I am not a fan of too many icons for actions as they require interpretation by the user" and I was hoping the rest of the UI wasn't going this way #8015 (comment) You guys put so much work into OC and I am grateful so I hate to complain but there is quite a few issues with these UI changes as someone who is using this for clients right now and who is building some SaaS stuff on the framework which will be impacted by these changes:
Some semantic thoughts:
|
Thank you for raising your concerns @scleaver. |
If many people are against icons, I guess we can remove them. |
Ok, no more icons. |
@scleaver Please reach to me directly on Skype so that I can look at customizations you did. I can look how to make them work and keep using the new stylesheets. I'm really sorry for your time loss on this but I think I explained why we moved to this strict stylesheets. BEM styles have nothing really to do with that. It's fine using this naming approach and sometimes it's not. It should not break your customizations if they are declared or compiled in the proper place. I have myself too an admin theme with some customizations and I copied over all the scss styles to my custom admin theme to add my own styles and to be able to "transpile" them. Another option would be to be able to import these scss files from a node_module npm package like I said in a different issue comment. Though, I did not have time yet to do so. (iteration madness) Though, I have to agree that here we are moving items from one zone to an other which will break the custom admin UI changes that you made. Nothing related with CSS. These are DOM element changes which can't be fixed other than moving these element back to their corresponding zones. Removing the icons was not suggested in the last meeting even though using stylesheets would be a more appropriate way to be able to customize this for your own needs. I think @sebastienros was clear about making these back to buttons and that we should be deterministic in our approach to do styles for the Admin UI. If people wants to do customizations on these we added a class for each of these buttons to style them ; which covers the need to extend them. I suggested in the last meeting to keep at least the text on each of these buttons and hide them with CSS for those that we don't need to show by default like "Localization" button. But this was not taken into consideration. So, in the end, if you want to do some customization on the Admin UI, right now, this PR won't fix anything for you. It will break your UI and it means that if you did customizations then it's on you. Sorry to say. I'm trying to keep things extensible at least but it will require some more iterations and compromises from everyone. Also, any UI changes might introduce some breaking changes at some point if we want to move forward. If there are any issues with this PR, please report it and we will fix it in priority. Thank you. Merry Christmas. |