Ensure primary and accent are distinct (fixes #1206) (Closes #1228)

master
Surma 2015-07-28 12:44:40 +01:00 committed by Addy Osmani
parent 7f14b0b6b3
commit 8f45448f32
1 changed files with 3 additions and 0 deletions

View File

@ -714,6 +714,9 @@ gulp.task('styles:gen', ['styles'], function() {
var stream = gulp.src('');
mc.paletteIndices.forEach(function(primary) {
mc.paletteIndices.forEach(function(accent) {
if (primary === accent) {
return;
}
if (mc.forbiddenAccents.indexOf(accent) !== -1) {
return;
}