-
15 Mar 2013 1:02 AM #1
Icons in ST 2.2 beta not working
Icons in ST 2.2 beta not working
Hi
First of all, why is SASS in ST2.2 still not working out of the box?
Could you not add a working SASS file so that we no longer need to fix it by hand?
REQUIRED INFORMATION
Ext version tested:- ST 2.2 beta
- Chrome 25.0.1364.172
- Additional SASS Pictos will not be rendered correct in tab bar.
- Add pictos to SASS file.
- Correctly rendered icon in tab bar.
- Rendering of icon is messed up.
SASS:
Code:@include pictos-iconmask('cube');
View:
Code:iconCls: 'home',
HELPFUL INFORMATION
Screenshot or Video:Debugging already done:- none
- not provided
- only default ext-all.css
-
15 Mar 2013 4:06 PM #2
This seems to be what happens when a particular icon codepoint alias is not found. Either a meaningful error at compile time, or a warning and a rendered empty icon would be helpful.
"cube" is not present. The available mappings-- e.g. "box" maps to "b" character in pictos font-- can be found in resources/themes/stylesheets/sencha-touch/base/mixins/_icon.scss
-
21 Mar 2013 11:15 AM #3
Ditto
Ditto
Hi
I have the exact same problem. Been banging my head against it for several days now and have finally given up and resorted to coding icons in a static css class in my index.html (ouch):
.iconCalc {background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhE...')!important;background-size: 100% !important;}
Anybody have a better workaround that could get sass to compile with additional icons included I'd love to hear about it.
Zac
-
30 Mar 2013 12:59 PM #4
Looks like it doesn't work in 2.2 RC either ...
-
5 Apr 2013 2:13 PM #5
From the 2.2 documentation, use http://icomoon.io to create your icon fonts. pictos-iconmask has been binned.
Olivier - interfaSys
Developing custom solutions for BlackBerry 10 using Sencha Touch.
-
8 Apr 2013 9:31 AM #6
Icon Mixin
Icon Mixin
Unfortunately even after creating a custom font there is still an issue using the icon mixin. Per the documentation you referenced you can either supply the icon mixin with two or three arguments, specifically three if you need to specify the iconCls name, icon character content, and font-family. However when compiling SASS you get an error that you cannot supply three arguments, and inspecting the mixin source supports this. Therefore it seems the only way to use custom font-family for icons is to modify the mixin source directly and change the name to character list. Since we all probably want to avoid modifying this source hopefully there is a fix in place for the final release of ST2.2 that allows you to specify all three arguments.
-
8 Apr 2013 12:10 PM #7
I think you should file this a separate request. It won't be fixed for the final release tomorrow, but hopefully a solution will be provided shortly.
Olivier - interfaSys
Developing custom solutions for BlackBerry 10 using Sencha Touch.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote