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 compatibility with Font Awesome 5 #612

Open
wants to merge 1 commit into
base: v5.x
from

Conversation

@radekdostal
Copy link
Contributor

@radekdostal radekdostal commented Feb 22, 2018

Unified icon names to be compatible with FA 5.

Unified icon names to be compatible with FA 5.
@@ -135,7 +135,7 @@
<a n:href="showAllColumns!" class="ajax"><i n:block = "icon-eye" class="{$icon_prefix}eye"></i> {='ublaboo_datagrid.show_all_columns'|translate}</a>
</li>
<li n:if="$control->hasSomeColumnDefaultHide()">
<a n:href="showDefaultColumns!" class="ajax"><i n:block = "icon-repeat" class="{$icon_prefix}repeat"></i> {='ublaboo_datagrid.show_default_columns'|translate}</a>
<a n:href="showDefaultColumns!" class="ajax"><i n:block = "icon-repeat" class="{$icon_prefix}redo"></i> {='ublaboo_datagrid.show_default_columns'|translate}</a>

This comment has been minimized.

@paveljanda

paveljanda Feb 22, 2018
Member

That one (and only one) would break backward compatibility.

This comment has been minimized.

@radekdostal

radekdostal Feb 22, 2018
Author Contributor

"redo" should be an alias for "repeat". Same as "times" and "remove".
See https://fontawesome.com/v4.7.0/icons/ and search "redo".

This comment has been minimized.

@paveljanda

paveljanda Feb 22, 2018
Member

redo is not an icon in v4. Try it by yourself. :)

This comment has been minimized.

@radekdostal

radekdostal Feb 22, 2018
Author Contributor

Hm. You are right.
There are more incompatible icons (FA4 -> FA5 - Free):

  • repeat -> redo
  • arrows -> arrows-alt
  • check-square-o -> check-square (filled)
  • square-o -> square (filled)

I don't know, how to support it. Add properties like DataGrid::$icon_prefix?

This comment has been minimized.

@kleinpetr

kleinpetr Feb 25, 2018

Yes, maybe add property with version of FA ?

DataGrid::$fa_version, $icon_version or something like this ?

This comment has been minimized.

@kleinpetr

kleinpetr Feb 25, 2018

next one different icon is
gear -> cog

This comment has been minimized.

@paveljanda

paveljanda Feb 25, 2018
Member

fa-repeat souns quite OK to me. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.