Skip to content

Commit c447cfb

Browse files
author
Ilan Parmentier
authored
span tag for more swatches link
Good afternoon, You can not hide text without before and after pseudo-elements. In our case, when you want to do a modification to a theme for this element, with by example, .lib-button-icon utility mixin, you can not hide the text without hiding icon. I needed to change directly the "More" dictionnary string. Ilan PARMENTIER
1 parent 5569b86 commit c447cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ define([
511511

512512
// Add more button
513513
if (moreLimit === countAttributes++) {
514-
html += '<a href="#" class="' + moreClass + '">' + moreText + '</a>';
514+
html += '<a href="#" class="' + moreClass + '">'<span> + moreText + '</span></a>';
515515
}
516516

517517
id = this.id;

0 commit comments

Comments
 (0)