Skip to content

Commit

Permalink
[styles] Increase the class name lenght limit before raising (#12222)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Jul 21, 2018
1 parent 778b036 commit d0efa75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/material-ui/src/styles/createGenerateClassName.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;

function safePrefix(classNamePrefix) {
const prefix = String(classNamePrefix);
warning(prefix.length < 100, `Material-UI: the class name prefix is too long: ${prefix}.`);
warning(prefix.length < 256, `Material-UI: the class name prefix is too long: ${prefix}.`);
// Sanitize the string as will be used to prefix the generated class name.
return prefix.replace(escapeRegex, '-');
}
Expand Down

0 comments on commit d0efa75

Please sign in to comment.