Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,11 @@ module.exports = function(grunt) {
{
expr: /content/im,
action: function( prop, value ) {
// Alternative text, as in `content: "\f141" / '';`, is not part of the icon.
var altText = ( value.match( /\s*\/\s*(?:'[^']*'|"[^"]*")\s*$/ ) || [ '' ] )[ 0 ];

value = value.slice( 0, value.length - altText.length );

if ( value === '"\\f141"' ) { // dashicons-arrow-left
value = '"\\f139"';
} else if ( value === '"\\f340"' ) { // dashicons-arrow-left-alt
Expand All @@ -938,7 +943,7 @@ module.exports = function(grunt) {
} else if ( value === '"\\f345"' ) { // dashicons-arrow-right-alt2
value = '"\\f341"';
}
return { prop: prop, value: value };
return { prop: prop, value: value + altText };
}
}
]
Expand Down
Loading