Skip to content
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

Icon Fonts with Data URIs not working #5385

Closed
moosetraveller opened this issue May 18, 2017 · 5 comments
Closed

Icon Fonts with Data URIs not working #5385

moosetraveller opened this issue May 18, 2017 · 5 comments

Comments

@moosetraveller
Copy link

moosetraveller commented May 18, 2017

We have an issue with the icon fonts Dropdown and Checkbox when using Internet Explorer 11 and an Endpoint Security solution. All icon fonts which are stated by a Data URI seemed to be blocked.

Fact is, that the Endpoint Security solution does not allow creation of *.tmp files in *\Users\*\AppData\Local\Temp and somehow these Base64-encoded Data URI seems to be stored in these files. When deactivating the rule, the icons were shown. However, it's not an option according to the sysops. The rule was introduced in order to have a better protection against Ransomware.

Interestingly, looking at the Semantic UI Dropdown page, the icons are shown. I guess that the CSS file is not cached...?

However, this is, of course, not a bug but I hope someone has an idea how to use Semantic UI respectively Data URIs with a strict Endpoint Security solution?

The only (workaround) solution I might think of is to "override" the font-family of the .dropdown class and include the fonts as a file (respectively by an url and not a Data URI) or include another font. Does anyone knows where I can get both icon fonts (Dropdown and Checkbox) as a file?

PS. The Icon font Icon works fine since it's included as a file.

@moosetraveller
Copy link
Author

moosetraveller commented May 18, 2017

@moosetraveller moosetraveller changed the title Icon Fonts (Dropdown, Checkbox, ...) with Data-URLs not working Icon Fonts (Dropdown, Checkbox, ...) with Data URIs not working May 18, 2017
@moosetraveller moosetraveller changed the title Icon Fonts (Dropdown, Checkbox, ...) with Data URIs not working Icon Fonts with Data URIs not working May 18, 2017
@moosetraveller
Copy link
Author

moosetraveller commented May 18, 2017

Workaround:

.ui.dropdown > .dropdown.icon {
    font-family: 'Icons' !important;
}

.ui.checkbox input:checked ~ .box:after, .ui.checkbox input:checked ~ label:after {
    font-weight: bold;
    content: '\f00c' !important;
    font-family: 'Icons' !important;
}

@awgv
Copy link
Member

awgv commented May 18, 2017

I don’t understand why it was done this way more than 2 years ago, maybe we can take another look at it.

@moosetraveller
Copy link
Author

moosetraveller commented May 24, 2017

Beside discussing the use of Data URIs:
Why are Data URIs for those specific icon fonts used since both icons (dropdown and checkbox) are also provided by the Icons font?

Side note:
Another difference between the Semantic UI page and our web application is that we are using Angular 4. It's an assumption, but the problem might be that the Endpoint Security solution cannot identify the Base64 string at some point when using Angular.

From my point of view it's not wrong to use Data URIs and therefore it's not a bug.

@stale
Copy link

stale bot commented Feb 23, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 23, 2018
@stale stale bot closed this as completed Mar 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants