-
Notifications
You must be signed in to change notification settings - Fork 500
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
replace dataset icon to more clearly differentiate it from a file #7991
Comments
@TaniaSchlatter these SVGs look great but I'm a little concerned that updating any of our icons is a can of worms. See, as described in the Style Guide, we use FontCustom for our icons: FontCustom brings a few challenges:
If we want to switch away from FontCustom perhaps we could try switching from FontCustom to your SVG for datasets and in the future look into switching to SVGs for other icons like files, collections, etc. (but we'd need those SVGs, of course). |
I saw this thread in the notifications. Let me add a quick thought: we might create a CI pipeline (so avoiding local installs) to convert the SVGs to a webfont and provide the necessary CSS files. Likely to be possible to serve them from a Github Pages source, just like Google et al does it. https://github.com/jaywcjlove/svgtofont We could use https://www.webjars.org to bundle the font into a package, integrated with the usual Dataverse Maven build. (That would allow to serve the fonts from each installation instead of relying on a "CDN" like Github) |
Thanks @pdurbin and @poikilotherm. I prefer to continue to use icons converted to a font if possible if we make this change in the short-term. There are some benefits (accessibility potentially, more precise positioning) to using .svgs instead of font icons. The default icons will change with Bootstrap 4, and we might consider changing to all .svg for icons then. |
|
During sprint planning I said I'd add a couple links here. First, I kept mentioning the 5 or 6 files that FontCustom creates. It looks like we have copies for both the app and the guides (so I assume both need to be updated): Here's a link to the files for the app: https://github.com/IQSS/dataverse/tree/develop/src/main/webapp/resources/fontcustom Here's the article I mentioned: Icon Fonts vs SVGs - Which One Should You Use in 2018? - https://www.keycdn.com/blog/icon-fonts-vs-svgs |
I found a post that explains a way to create SVGs from the .ttf file (TrueType font) file. Here's the command:
Here's the terminal output:
It created the following SVG files which I'm uploading here as icons.zip and junk.zip (for the weird .notdef and .null) files: .notdef_fontcustom.svg (nonmarkingreturn_fontcustom.svg and space_fontcustom.svg are in icons.zip but I'm not sure if they're used or not.) @TaniaSchlatter can you please take a look at icons.zip and let me know if you think we can move forward with these? Meanwhile, what I'd do next is try to get FontCustom installed (it's in Ruby) and see if I can get it to work with the SVGs above. @poikilotherm I haven't tried any of the alternative libraries you mentioned above but I'm open to something that seems less abandoned. From what I can tell, there's no obvious choice, no dominant player in the "create icon fonts" from the command line space. |
Great that you were able to get these .svg files, @pdurbin! I have reviewed them, and they represent the up to date set that is live on Production. I was not able to see anything in the "junk" set. I expect that nonmarkingreturn_fontcustom.svg and space_fontcustom.svg are used to help with spacing in some places.
|
@TaniaSchlatter thanks. Good news. By downgrading Ruby from 3 to 2.7 I got FontCustom to work.
Here's a screenshot of the preview FontCustom creates: I also made a zip of the preview that I hope will work for you. You need to open the file |
I just pushed 4050bcd which include a lot of docs I wrote about the scripts I made for using Font Custom. This means that another developer is welcome to pick this up and finish it off since I'm about to go on vacation. The main thing we need at this point is the final set of SVGs. @TaniaSchlatter is working on this. Once they're ready they can be placed in This zip should contain the icons we want with the exception of dataset.svg, which we'd like to update: svg.zip. (The icons we've been iterating on are dataset, document, and code.) |
@TaniaSchlatter came through just in time with a working dataset icon! 🎉 Pull request #8021 is ready for review! |
Dataverse uses icons and color to differentiate dataverses, datasets, and files. The dataset icon is hard to differentiate from file icons, because it is the same as the generic "file" icon, other than color.
This issue is to replace the dataset icon with one that indicates more than one item – a set – to help the difference between a dataset and a file be more clear, without relying on color.
dataset_icon_set_active.svg.zip
dataset_icon_set.svg.zip
The text was updated successfully, but these errors were encountered: