Skip to content

Commit

Permalink
ENGCOM-4339: [Backport] icon text showing feature #21203
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored Apr 17, 2019
2 parents b55bb34 + 5a5b1b0 commit c01e038
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions lib/web/css/source/lib/_icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@
@_icon-font-text-hide: @icon-font__text-hide,
@_icon-font-display: @icon-font__display
) when (@_icon-font-position = before) {
._lib-icon-text-hide(@_icon-font-text-hide);
.lib-css(display, @_icon-font-display);
text-decoration: none;
text-decoration: none;

& when not (@_icon-font-content = false) {
._lib-icon-text-hide(@_icon-font-text-hide);
}

&:before {
._lib-icon-font(
Expand Down Expand Up @@ -68,10 +71,13 @@
@_icon-font-text-hide: @icon-font__text-hide,
@_icon-font-display: @icon-font__display
) when (@_icon-font-position = after) {
._lib-icon-text-hide(@_icon-font-text-hide);
.lib-css(display, @_icon-font-display);
text-decoration: none;


& when not (@_icon-font-content = false) {
._lib-icon-text-hide(@_icon-font-text-hide);
}

&:after {
._lib-icon-font(
@_icon-font-content,
Expand Down Expand Up @@ -151,8 +157,11 @@
@_icon-image-text-hide: @icon__text-hide
) when (@_icon-image-position = before) {
display: inline-block;
._lib-icon-text-hide(@_icon-image-text-hide);


& when not (@_icon-image = false) {
._lib-icon-text-hide(@_icon-image-text-hide);
}

&:before {
._lib-icon-image(
@_icon-image,
Expand All @@ -179,7 +188,10 @@
@_icon-image-text-hide: @icon__text-hide
) when (@_icon-image-position = after) {
display: inline-block;
._lib-icon-text-hide(@_icon-image-text-hide);

& when not (@_icon-image = false) {
._lib-icon-text-hide(@_icon-font-text-hide);
}

&:after {
._lib-icon-image(
Expand Down

0 comments on commit c01e038

Please sign in to comment.